mozaic_include_active_notes_tracker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mozaic_include_active_notes_tracker [2020/07/23 02:24] – Created Active Notes Tracker (Include) _kimozaic_include_active_notes_tracker [2020/07/27 03:00] (current) – [Scripts using the Active Notes Tracker] Title unification _ki
Line 1: Line 1:
-====== Mozaic: Active Notes Tracker (Include) ======+====== Mozaic: Include Snippet - Active Notes Tracker ======
 {{tag>Mozaic midi_scripting}} {{tag>Mozaic midi_scripting}}
  
Line 33: Line 33:
 Retrieval of all active notes of each channel is also quite fast.  Retrieval of all active notes of each channel is also quite fast. 
  
-==== Samples using the Active Notes Tracker ==== +==== Scripts using the Active Notes Tracker Snippet ==== 
   * The [[https://patchstorage.com/active-notes-tracker/|Active Notes Tracker (Include) Demo]] is a fast asynchronus display of all active notes for all channels   * The [[https://patchstorage.com/active-notes-tracker/|Active Notes Tracker (Include) Demo]] is a fast asynchronus display of all active notes for all channels
-  * The [[https://patchstorage.com/note-statistics/]] displays the active count and total duration in 32th for all 12 root notes. +  * The [[https://patchstorage.com/note-statistics/|Note Statistics]] script displays the active count and total duration in 32th for all 12 root notes 
-  * The [[https://patchstorage.com/active-notes-tracker-include-demo/]] logs actives notes for each channel (soure code see below)+  * The [[https://patchstorage.com/mute-maschine/|Mute Maschine]] script allows to beat juggle with channel mutes (temporary mute/un-mute channels, ie gating sustained chords)
      
 \\  \\ 
 ===== Adding the 'Active Note Tracker' to own scripts ==== ===== Adding the 'Active Note Tracker' to own scripts ====
 You can either grab the snippet from one of the example scripts where you find the  You can either grab the snippet from one of the example scripts where you find the 
-to-be-included snippet at the end of the scripts inbetween âŒ„⌄⌄⌄⌄⌄⌄⌄  and  âŒƒâŒƒâŒƒâŒƒâŒƒâŒƒâŒƒâŒƒ .+to-be-included snippet at the end of the scripts inbetween ⌄⌄⌄⌄⌄⌄⌄⌄  and  ⌃⌃⌃⌃⌃⌃⌃⌃ .
  
 Or you copy the code from the large code block at the end of this page to the end of your own script. Or you copy the code from the large code block at the end of this page to the end of your own script.
Line 120: Line 120:
  
 <code> <code>
-// â•”═╗┌─┐┌┬┐┬┬  â”¬â”Œâ”€â”  â•”╗╔┌─┐┌┬┐┌─┐┌─┐  â•”╦╗┬─┐┌─┐┌─┐┬┌─┌─┐┬─┐ +// ╔═╗┌─┐┌┬┐┬┬  ┬┌─┐  ╔╗╔┌─┐┌┬┐┌─┐┌─┐  ╔╦╗┬─┐┌─┐┌─┐┬┌─┌─┐┬─┐ 
-// â• â•â•£â”‚   â”‚ │└┐┌┘├┤   â•‘║║│ │ │ ├┤ └─┐   â•‘ ├┬┘├─┤│  â”œâ”´â”â”œâ”¤ ├┬┘ +// ╠═╣│   │ │└┐┌┘├┤   ║║║│ │ │ ├┤ └─┐   ║ ├┬┘├─┤│  ├┴┐├┤ ├┬┘ 
-// â•© ╩└─┘ â”´ â”´ └┘ └─┘  â•â•šâ•â””─┘ â”´ └─┘└─┘   â•© ┴└─┴ ┴└─┘┴ ┴└─┘┴└─+// ╩ ╩└─┘ ┴ ┴ └┘ └─┘  ╝╚╝└─┘ ┴ └─┘└─┘   ╩ ┴└─┴ ┴└─┘┴ ┴└─┘┴└─
 // ==== v1.0 ============================================= // ==== v1.0 =============================================
 // Manages a list of active notes, velocity and duration for  // Manages a list of active notes, velocity and duration for 
Line 166: Line 166:
   ant_free = 0        // Next free entry   ant_free = 0        // Next free entry
  
-  Log {📔 ActiveNotesTracker v1.0: Initialized}  +  Log {📔 ActiveNotesTracker v1.0: Initialized}  
 @End @End
  
Line 263: Line 263:
  
     if _c > 15     if _c > 15
-      Log {📔 ActiveNotesTracker v1.0: â€¼ï¸ Search or free-entry took },_c, { iterations}        +      Log {📔 ActiveNotesTracker v1.0: ‼️ Search or free-entry took },_c, { iterations}        
     endif     endif
   else   else
-    Log {📔 ActiveNotesTracker v1.0: â—️ Double NoteOn },{ c},MIDIChannel,{ n},MIDINote,{ detected}+    Log {📔 ActiveNotesTracker v1.0: ❗️ Double NoteOn },{ c},MIDIChannel,{ n},MIDINote,{ detected}
   endif     endif  
 @End @End
Line 283: Line 283:
     if ant_note[_idx] <> MIDINote or ant_chan[_idx] <> MIDIChannel     if ant_note[_idx] <> MIDINote or ant_chan[_idx] <> MIDIChannel
         Log {              n},MIDINote,{ c},MIDIChannel,{ vs  n},ant_note[_idx],{ c},ant_chan[_idx]         Log {              n},MIDINote,{ c},MIDIChannel,{ vs  n},ant_note[_idx],{ c},ant_chan[_idx]
-        Log {📔 ActiveNotesTracker v1.0: â€¼ï¸ Internal ERROR: NoteOff called with wrong _idx }  +        Log {📔 ActiveNotesTracker v1.0: ‼️ Internal ERROR: NoteOff called with wrong _idx }  
     endif     endif
          
Line 325: Line 325:
  
   else   else
-    Log {📔 ActiveNotesTracker v1.0: â—️ Double NoteOff},{ c},MIDIChannel,{ n},MIDINote,{ detected}+    Log {📔 ActiveNotesTracker v1.0: ❗️ Double NoteOff},{ c},MIDIChannel,{ n},MIDINote,{ detected}
   endif   endif
 @End @End
 </code> </code>
  
  • mozaic_include_active_notes_tracker.1595435055.txt.gz
  • Last modified: 2020/07/23 02:24
  • by _ki