Hi!
Made a script for my Novation Mini that works fine for controlling the DAW (stepsequencing, mixing, instrument-tweaking, launching and so on)
Now I need to “manipulate” incoming notes, specifically: collect them to an array when keys are pressed, not passing them through, but “collecting” them (as chords) and assigning those to some (simultaneously held and released when all “chord-notes” are played) key below a split, to play them back when same key is hit again. So, basically I use the “pressed” -state (144) of keys below split as a “begin storing” -command and the release (127) for same as “stop storing” -command, which makes it a breeze to catch inspiring chord progressions on the fly.
Everything works perfect, with only one problem: when “playing back” the notes (chords) stored in the arrays for each key, the instrument on the track plays those correctly on instrument on track, only, they do not get recorded (to the Bitwig track/clip).
My approach is to filter out everything with the createNoteInput() by setting second parameter blank (this stops the onMidi() -eventprocedure from passing the notes directly through to the track) and then “programmatically” passing the “stored” notes with the cursorTrack.sendMidi() instead when the key is hit again.
As said everything works fine (chords are stored and plays back on the instrument on cursorTrack), only they are not recorded on track.
I should mention that I tried both settings (true/false) for shouldConsumeEvents on the note input, but none gives me the wanted result.
I am relying on api v.1 as I’d otherwise need to refactor entire script.
Any help?
Putting notes into BWS by script
Moderator: Bitwig Mods
Putting notes into BWS by script
2023-06-06T21:02:07+00:00
Hi!
Made a script for my Novation Mini that works fine for controlling the DAW (stepsequencing, mixing, instrument-tweaking, launching and so on)
Now I need to “manipulate” incoming notes, specifically: collect them to an array when keys are pressed, not passing them through, but “collecting” them (as chords) and assigning those to some (simultaneously held and released when all “chord-notes” are played) key below a split, to play them back when same key is hit again. So, basically I use the “pressed” -state (144) of keys below split as a “begin storing” -command and the release (127) for same as “stop storing” -command, which makes it a breeze to catch inspiring chord progressions on the fly.
Everything works perfect, with only one problem: when “playing back” the notes (chords) stored in the arrays for each key, the instrument on the track plays those correctly on instrument on track, only, they do not get recorded (to the Bitwig track/clip).
My approach is to filter out everything with the createNoteInput() by setting second parameter blank (this stops the onMidi() -eventprocedure from passing the notes directly through to the track) and then “programmatically” passing the “stored” notes with the cursorTrack.sendMidi() instead when the key is hit again.
As said everything works fine (chords are stored and plays back on the instrument on cursorTrack), only they are not recorded on track.
I should mention that I tried both settings (true/false) for shouldConsumeEvents on the note input, but none gives me the wanted result.
I am relying on api v.1 as I’d otherwise need to refactor entire script.
Any help?
nielshertz@gmail.com
https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=523693
-
nielshertz@gmail.com nielshertz@gmail.com https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=523693
- KVRer
- Topic Starter
- 2 posts since 5 Aug, 2021
Post by nielshertz@gmail.com » Tue Jun 06, 2023 9:02 pm
Post Reply
1 post
• Page 1 of 1
Return to “Controller Scripting”
Jump to
- The Main Forums
- ↳ KVR Studio Manager
- ↳ KVR Experts
- ↳ Getting Started (AKA What is the best...?)
- ↳ Instruments
- ↳ Effects
- ↳ Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)
- ↳ Guitars
- ↳ Mobile Apps and Hardware
- ↳ Soundware
- ↳ Samplers, Sampling & Sample Libraries
- ↳ Hardware (Instruments and Effects)
- ↳ Modular Synthesis
- ↳ Sound Design
- ↳ Production Techniques
- ↳ Music Theory
- ↳ Computer Setup and System Configuration
- ↳ DSP and Plugin Development
- ↳ DIY: Build it and they will come
- ↳ Music Cafe
- ↳ Sell & Buy (+Special Offers, Deals & Promos)
- ↳ KVR Developer Challenge 2023
- ↳ Everything Else (Music related)
- ↳ Off Topic
- ↳ Off Topic Classics
- Official Company Forums
- ↳ 2getheraudio
- ↳ accSone
- ↳ Acon Digital
- ↳ AcousticsampleS
- ↳ AcousModules
- ↳ Agitated State
- ↳ AIR Music Technology
- ↳ AMG
- ↳ Ample Sound
- ↳ Antares Audio Technologies
- ↳ Apisonic Labs
- ↳ apulSoft
- ↳ AriesCode
- ↳ Arts Acoustic
- ↳ Arturia
- ↳ Audjoo
- ↳ AudioSpillage
- ↳ Audiority
- ↳ Best Service
- ↳ Big Tick
- ↳ Bitwig
- ↳ Controller Scripting
- ↳ Blue Cat Audio
- ↳ Cherry Audio
- ↳ CWITEC
- ↳ Embertone
- ↳ energyXT
- ↳ Eventide
- ↳ Expert Sleepers
- ↳ forward audio
- ↳ Future Audio Workshop
- ↳ FXpansion
- ↳ g200kg
- ↳ Harrison Mixbus
- ↳ HG Fortune
- ↳ Homegrown Sounds
- ↳ HoRNet Plugins
- ↳ Ilya Efimov Production
- ↳ Image Line
- ↳ Impact Soundworks
- ↳ Indiginus
- ↳ Insert Piz Here
- ↳ Ju-X
- ↳ Kirk Hunter Studios
- ↳ Kirnu
- ↳ Kong Audio
- ↳ Krotos
- ↳ Kuassa
- ↳ KV331 Audio
- ↳ LennarDigital
- ↳ Les Productions Zvon
- ↳ Liqube Audio
- ↳ Loomer
- ↳ LVC-Audio
- ↳ Maizesoft
- ↳ Manytone Music
- ↳ MeldaProduction
- ↳ Mellowmuse
- ↳ MIDIMood
- ↳ moForte
- ↳ Mozaic Beats
- ↳ mucoder
- ↳ MusicDevelopments
- ↳ Tips & Tricks
- ↳ MusicLab
- ↳ MUTOOLS
- ↳ New Sonic Arts
- ↳ NUSofting
- ↳ Oli Larkin Plugins
- ↳ Orange Tree Samples
- ↳ patchpool
- ↳ Photosounder
- ↳ PlugInGuru
- ↳ Polyverse Music
- ↳ Precisionsound
- ↳ Premier Sound Factory
- ↳ Psychic Modulation
- ↳ Realitone
- ↳ Resonance-Sound
- ↳ Reveal Sound
- ↳ Roger Linn Design
- ↳ rs-met
- ↳ S3A: Spatial Audio
- ↳ SaschArt
- ↳ Smart Electronix
- ↳ sonible
- ↳ SonicBirth
- ↳ Sonic Reality / eSoundz.com
- ↳ Soundiron
- ↳ SPC Plugins
- ↳ Sugar Bytes
- ↳ TAL Software
- ↳ Tokyo Dawn Labs
- ↳ Tracktion
- ↳ u-he
- ↳ u-he Linux support
- ↳ United Plugins
- ↳ VAZ Synths
- ↳ Virharmonic
- ↳ Wolfgang Palm
- ↳ xoxos
- ↳ XSRDO - SynthCraft
- ↳ ZynAddSubFX
- Site Stuff
- ↳ Site Stuff
- Archived Forums
- ↳ AlgoMusic
- ↳ easytoolz
- ↳ Elevayta
- ↳ Hollow Sun
- ↳ Kazrog
- ↳ LinPlug
- ↳ Muse Research and Development
- ↳ Shuriken
- ↳ SoHa Sound Design
- ↳ Soniccouture
- ↳ Topten Software
- ↳ Tweakbench
- ↳ Valhalla DSP
- ↳ CK Modules & VST
- ↳ Sennheiser AMBEO
- ↳ Muon Software
- ↳ Westgatesounds.net
- ↳ Squaredheads
- ↳ Sonigen
- ↳ CFA-Sound
- ↳ Back In Time Records
- ↳ Livelab.dk
- ↳ Skytopia
- ↳ audioD3CK
- ↳ Inspire Audio
- ↳ Krakli
- ↳ Drumdrops
- ↳ Futucraft
- ↳ OverTone DSP
- ↳ RaXnTraX
- ↳ solar3d-software
- ↳ Signaldust
- ↳ Soundemote
- KVR Forum index
- All times are UTC
- Delete cookies