Search the Community
Showing results for tags 'add subtract values'.
-
Hey everybody! I'm learning more about the Midibox_NG every day. So far, I am able to read out analog and digital signals, assign them to CCs or NRPNs and routing them to outputs. It is truly amazing what you guys accomplished with this Midi platform. Kudos to you! What I am looking for at the moment is a way to add, subtract or scale (divide) two or multiple NRPNs, CCs or even a combination of both. My application is to fine tune a Midi note value by an AIN pot (+- 2 semitones) before sending it to an AOUT. As I build a three VCO analog synth, I would further like to scale the frequency for each oscillator by an octave rotary switch (6 octaves) as well as a detune AIN pot (+- 7 semitones). One solution would be to waste AOUTs for each setting and combining the voltages in the hardware. However, this is certainly not what I am after, as AOUTs are expensive and I will eventually run out of spare ones, once my full fledged analog synth reaches completion. Does anybody know if this is even possible with the Midibox_NG scripting language and how it can be done? I see three ways how the AOUT part could be done: - Use one AOUT for the fine tuned frequency voltage for all three OSCs together and one scale/detune AOUT for each individual oscillator (4 AOUTs) -> pro: it's the easiest solution, the VCO can be modulated via just the first AOUT. con: four AOUTS needed - Use one AOUT for each OSC and calculate the frequency value out of Midi tone, fine tune, octave and detune value for each OSC individually (3 AOUTs) -> pro: only three AOUTs needed, the solution is still pretty logic and straight forward. con: the modulation of the whole VCO would be much more complicated - Or use a combination of both by using Midinote, finetune plus octave value of the first OSC for all three oscillators (the first OSC doesn't need a detune function for obvious reasons) and then use two other AOUTs to subtract the octave value of the first OSC and add the individual octave settings and detune values for the two other oscillators (3 AOUTs) -> pro: only three AOUTs needed, the VCO could still be modulated as a whole. con: quite a complicated solution. It would be cool, if somebody could point me into the right direction. Thanks for your replies! By the way: Although http://www.midibox.o...i_specification explains the splitting of 14bit values into MSB and LSB, I wasn't able to fully comprehend, how this can be done using the Midibox_NG scripting language. Is this even possible without altering the code of Midibox_NG itself? However, this is not my main question, as the whole Midi_Out part will come later in my build.