Browse Source

note preview with groups

master
Nils 4 years ago
parent
commit
d710ceaad6
  1. 2
      CHANGELOG
  2. 4
      engine/api.py
  3. 8
      engine/track.py

2
CHANGELOG

@ -4,7 +4,7 @@ Add option to change the midi channel for a track in the tracks context menu.
Add switch group places to song-structure context menus.
Add View-Menu with options to maximize the two editor areas.
Add advanced feature for a global rhythm offset, meant for Jack-Transport. Allows the whole piece to begin later on the jack-timeline.
Add track groups, which double as midi bus.
Add track groups, which double as midi bus. This enhances overview for more complex projects.
2021-01-15 Version 2.0.0
Big new features increase the MAJOR version. Old save files can still be loaded.

4
engine/api.py

@ -1315,11 +1315,11 @@ def resizePatternWithoutScale(trackId, steps):
def noteOn(trackId, row):
track = session.data.trackById(trackId)
midipitch = track.pattern.scale[row]
cbox.send_midi_event(0x90+track.midiChannel, midipitch, track.pattern.averageVelocity, output=track.sequencerInterface.cboxMidiOutUuid)
cbox.send_midi_event(0x90+track.midiChannel, midipitch, track.pattern.averageVelocity, output=track.cboxMidiOutAbstraction)
def noteOff(trackId, row):
track = session.data.trackById(trackId)
midipitch = track.pattern.scale[row]
cbox.send_midi_event(0x80+track.midiChannel, midipitch, track.pattern.averageVelocity, output=track.sequencerInterface.cboxMidiOutUuid)
cbox.send_midi_event(0x80+track.midiChannel, midipitch, track.pattern.averageVelocity, output=track.cboxMidiOutAbstraction)

8
engine/track.py

@ -68,6 +68,14 @@ class Track(object): #injection at the bottom of this file!
self.whichPatternsAreHalftoneTransposed = whichPatternsAreHalftoneTransposed if whichPatternsAreHalftoneTransposed else {} #position:integers between -7 and 7. Reversed pitch, row based: -7 is higher than 7!!
self._processAfterInit()
@property
def cboxMidiOutAbstraction(self):
"""Returns the real cbox midi out for standalone tracks and the bus one for groups"""
if self.group:
return self.parentData.groups[self.group].cboxMidiOutUuid
else:
return self.sequencerInterface.cboxMidiOutUuid
def _processAfterInit(self):
pass

Loading…
Cancel
Save