Using Sonar with a GM application - need some ideas

Author
arachnaut
Max Output Level: -67 dBFS
  • Total Posts : 1168
  • Joined: 2007/05/05 17:24:33
  • Location: Sunnyvale, CA USA
  • Status: offline
2012/05/09 04:10:52 (permalink)

Using Sonar with a GM application - need some ideas


I have two applications that send MIDI notes to GM channels. They send computer 
algorithmic phrases to a generic GM synth on the 16 GM channels with the Bank 
and Program selections sent at the start of the track.

I have used this with Live using an Instrument Rack and Live Sampler with a GM 
sample set on 128 samples.

I can use this in Sonar with TTS-1 in a similar fashion - the application 
chooses the GM instruments.

But... what I would like to do is make a more generic 'template' for Sonar. I'm 
not sure of the best way to proceed, has anyone else done this sort of thing?

I want a GM program change to select an instrument in a channel. What have 
people done to solve this problem in a general way?

As an example of what I have in mind is a setup with 16 MIDI tracks - each track 
has a Kore preset. I want each GM preset to select the instrument presets in 
each of the 16 MIDI tracks.



- Jim Hurley -
SONAR Platinum - x64  - Windows 10 Pro 
ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
#1

18 Replies Related Threads

    Skyline_UK
    Max Output Level: -54 dBFS
    • Total Posts : 2133
    • Joined: 2004/04/15 17:55:09
    • Location: Midlands, UK
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 04:15:48 (permalink)
    Do you mean you want to change patches on the same track during the course of the song?  You can do that by editing the View Events list, i.e. inserting a program change.

    My stuff
     
    Intel Sandy Bridge i7 2600 @ 3.4GHz, 4 cores, 8 threads, 16GB RAM.
    OS & Programs drive: 240GB SSD
    Data drives: 1 x 1TB drive RAID mirrored, plus extra 1TB data drive 
    Windows 10 Home 64 bit
    Cakewalk by BandLab 64 bit, Studio One 3, 
    Band In A Box 2016, Ozone 8
    + too many other plugins
    BandLab page
    #2
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 06:58:07 (permalink)
    No.

    I want to change patches before the song starts.

    In other words:
    1) I set up Sonar somehow to accept the following
    2) I set up these other tools
    3) I select an algorithm in the other tools (these will select the GM instruments)
    4) I start the tools and they send the GM bank and program selects and then the MIDI channels.
    5) Sonar selects the banks and presets


    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #3
    Skyline_UK
    Max Output Level: -54 dBFS
    • Total Posts : 2133
    • Joined: 2004/04/15 17:55:09
    • Location: Midlands, UK
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 07:04:16 (permalink)
    What are you using for sounds, an external or software synth (Kore?) ?

    My stuff
     
    Intel Sandy Bridge i7 2600 @ 3.4GHz, 4 cores, 8 threads, 16GB RAM.
    OS & Programs drive: 240GB SSD
    Data drives: 1 x 1TB drive RAID mirrored, plus extra 1TB data drive 
    Windows 10 Home 64 bit
    Cakewalk by BandLab 64 bit, Studio One 3, 
    Band In A Box 2016, Ozone 8
    + too many other plugins
    BandLab page
    #4
    FastBikerBoy
    Forum Host
    • Total Posts : 11326
    • Joined: 2008/01/25 16:15:36
    • Location: Watton, Norfolk, UK
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 07:18:41 (permalink)
    Are you sending existing midi data via a track(s) being played or are you using live control from an instrument controller?
    #5
    Jonbouy
    Max Output Level: 0 dBFS
    • Total Posts : 22562
    • Joined: 2008/04/14 13:47:39
    • Location: England's Sunshine South Coast
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 07:50:48 (permalink)

    I want a GM program change to select an instrument in a channel. What have people done to solve this problem in a general way?


    The difficulty there is most modern VSTi's are not GM compliant.

    How I normally deal with that is to start with a GM synth like the TTS and then assign the 'proper' instruments I'm going use from there.

    The only channel I can pretty much guarantee is routing Channel 10 to whatever drum sampler.

    I've never found a way of setting up a 'template' type environment to choose for me.

    Even if I was setting up a solely GM compliant midi session I'd still have to decide what channels were going to be assigned to what and what patches I'm going to be using per track on each project.

    Karl looks like he is onto something which may interest you here using live control.  Let's pick his brains some more...

    "We can't do anything to change the world until capitalism crumbles.
    In the meantime we should all go shopping to console ourselves" - Banksy
    #6
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:04:45 (permalink)
    Skyline_UK


    What are you using for sounds, an external or software synth (Kore?) ?

    In general, any software synth (VSTi) 


    In my particular case, I am concentrating on Kore, Reaktor and Kontakt. 


    But also Zebra and Alchemy... etc.

    I would like to have a nice Piano for MIDI program 1, and a nice Marimba for MIDI program 13, etc. - but these might not be standard instruments - most likely a synth preset that has those acoustic/spectral similarities so that it sounds pleasant in that particular algorithm. In some cases I may chose radically different instruments.

    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #7
    Jonbouy
    Max Output Level: 0 dBFS
    • Total Posts : 22562
    • Joined: 2008/04/14 13:47:39
    • Location: England's Sunshine South Coast
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:12:32 (permalink)
    It's often the way I work.

    I start out with one of the default Midi Scoring templates to sketch out the arrangement and just progress out from the GM instruments as I go along.

    If anyone shows up with a cool alternative way of doing it I'm interested too.

    Standard brass, piano or string setups say I have a good mix of track templates I use for those with all the bus processing required already in place, so I tend to choose one of those and just assign to corresponding midi track to the new instrument chain brought in by the Track Template.

    That way I have a bunch of favourite setups I can quickly bring in for each sound I'm after.

    "We can't do anything to change the world until capitalism crumbles.
    In the meantime we should all go shopping to console ourselves" - Banksy
    #8
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:12:50 (permalink)
    FastBikerBoy


    Are you sending existing midi data via a track(s) being played or are you using live control from an instrument controller?

    Both.


    The application is generating Live MIDI note data (and pitch bends for microtonal effects) - I am adding modulation effects via Mod Wheel, and controller data.


    The programs generate tonal events - I add spectral modulations via external effects - I also control the effects and presets with MIDI Learn settings (rotaries, foot controllers, joysticks, etc.)


    In other words, I set up an algorithm that I like - it sends a bunch of notes - I set up the instruments and controller data while it plays the notes. I may change an instrument while it is playing.


    Imagine that you are playing a keyboard - but someone else is adjusting the notes - setting the dampers, tightening the strings, etc.





    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #9
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:15:32 (permalink)


    How I normally deal with that is to start with a GM synth like the TTS and then assign the 'proper' instruments I'm going use from there.

    ...   

    I've never found a way of setting up a 'template' type environment to choose for me.

    Even if I was setting up a solely GM compliant midi session I'd still have to decide what channels were going to be assigned to what and what patches I'm going to be using per track on each project.

    ...



    Yes, that is the problem. It's pretty easy to just use a GM instrument, but I want different settings for the channels.


    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #10
    FastBikerBoy
    Forum Host
    • Total Posts : 11326
    • Joined: 2008/01/25 16:15:36
    • Location: Watton, Norfolk, UK
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:18:41 (permalink)
    Sorry to be dumb but when you say "the application" are you referring to Sonar? The reason I'm asking is I was thinking of sending a GM reset message which can be done automatically via a midi file loaded into Sonar.

    The instrument choices are then read from the file. I use something like that for a live solo project I run but I'm not using Sonar as my mainstay, only as a backup. I'm not sure whether Sonar would respond to a GM reset from a controller, or rather whether it would get passed to VSts correctly.

    As Jonbouy has pointed out though, there's lots of VSTs that aren't GM compliant.
    #11
    Jonbouy
    Max Output Level: 0 dBFS
    • Total Posts : 22562
    • Joined: 2008/04/14 13:47:39
    • Location: England's Sunshine South Coast
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:19:46 (permalink)
    I just added some more info in the last post as you were typing.

    Track templates are the key for me to quickly bring in the cool sounds after I've quickly laid out an idea using just the TTS-1.

    "We can't do anything to change the world until capitalism crumbles.
    In the meantime we should all go shopping to console ourselves" - Banksy
    #12
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:21:59 (permalink)
    Here is an example of the workflow:

    I set up an algorithm in Fractal Tune Smithy (or some other tool like that).

    It chooses, and I alter, it's instrument assignments on the 16 MIDI channels - sending a GM program change on each channel when I start it,

    While it is playing I do effect and pitch modulations - sometime changing the instrument (but not often).



    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #13
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:26:25 (permalink)
    FastBikerBoy


    Sorry to be dumb but when you say "the application" are you referring to Sonar? The reason I'm asking is I was thinking of sending a GM reset message which can be done automatically via a midi file loaded into Sonar.

    The instrument choices are then read from the file. I use something like that for a live solo project I run but I'm not using Sonar as my mainstay, only as a backup. I'm not sure whether Sonar would respond to a GM reset from a controller, or rather whether it would get passed to VSts correctly.

    As Jonbouy has pointed out though, there's lots of VSTs that aren't GM compliant.

    No, to me Sonar is 'just' the recording tool. The application (I should say performer) is the note event generator. I suppose I could set up Sonar's MIDI effects and arpegiators to do this, too, but I don't.





    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #14
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:39:59 (permalink)

    Track templates are the key for me to quickly bring in the cool sounds after I've quickly laid out an idea using just the TTS-1.

    That is the approach I am taking. I am preparing 128 track templates for the 128 GM instruments.


    But I will have a lot more than 128, because - for example - GM instrument 59, say, is a Tuba. I may just pick some deep bass sound for the Tuba in one scenario, but a different one in another. So I may have several choices for GM instrument 59 - all something suggestive of a deep bass brass instrument that plays slowly.


    In general, though, I am not using the specifically named GM instrument. It is not my intention to play a tradition song-form, it is quite the opposite intention. But the tool is generating a sound that is tailored to the sound quality of that instrument, so I need something like a Tuba here - a flute-y sound would probably be inappropriate (but in some cases I may actually use that, too, if it works).


    So flexibility in the assignment is important.



    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #15
    FastBikerBoy
    Forum Host
    • Total Posts : 11326
    • Joined: 2008/01/25 16:15:36
    • Location: Watton, Norfolk, UK
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 08:52:02 (permalink)
    Sorry I'm dense at times so I'm still a little confused on exactly what you are trying to do but if the idea is to set a GM instrument at the outset then using a midi file to send a GM reset is quite feasible even if the GM reset is the only thing in the file that you load.

    You can then use realtime patch changes to change patches as you wish. As I said I don't use Sonar as my main playback device but I do use a similar method to set up my Sonic Cell. At the beginning of each file it loads a GM reset to reset all 16 channels and then loads patches per channel as needed. In my case read from the file but there's no reason it couldn't be sent in real time from a controller, and in some cases I do via my Boss effects unit.

    It also sends patch changes out to my vocals FX processor (a Quad 4). I could use SOnar to do all of that and in fact have done in an emergency but I prefer the sounds of the Sonic Cell to anything I have available within Sonar.

    Don't know whether that helps you at all of course.
    #16
    ducatibruce2
    Max Output Level: -79 dBFS
    • Total Posts : 557
    • Joined: 2008/10/05 09:04:31
    • Location: Tasdemonia, Oz
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 09:18:57 (permalink)
    If I understand correctly, the external applications are generating midi note & patch change data, which is fed into Sonar to drive VSTs loaded in Sonar. The patch change data is GM compliant & the setup works using TTS (which is GM compliant too). But you want to drive other VSTs inside Sonar.

    I think the problem is that the other VSTs are not GM compliant & you need to translate the patch change data to suit. I'm not aware of a way to do that in Sonar.

    I think another problem is that many VSTs do not respond to patch change messages at all, I'm reasonably sure Kontakt & Reaktor don't (though it may be possible with Kontakt's scripting (KSF)
     
    Edit to add: If it were me, the next thing I'd be doing is making sure the VSTs being used respond to patch change data.

    S8.5.3PE & X1d P Exp & X2P, Q6600 @3Ghz, 4GB DDR2, XP SP3
    With Knobs: 2 x Yamaha i88x mlan (ASIO), RS7000, Motif ESR, Roland SI24, VSynth XT, Varios, Fantom XR, JunoD, HPD10, Korg PadKontrol
    No knobs: P5, DimPro, Rapture, Z3ta+, IK stuff, ReCycle, Komplete8
    #17
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 09:52:30 (permalink)
    ducatibruce2


    If I understand correctly, the external applications are generating midi note & patch change data, which is fed into Sonar to drive VSTs loaded in Sonar. The patch change data is GM compliant & the setup works using TTS (which is GM compliant too). But you want to drive other VSTs inside Sonar.

    I think the problem is that the other VSTs are not GM compliant & you need to translate the patch change data to suit. I'm not aware of a way to do that in Sonar.

    I think another problem is that many VSTs do not respond to patch change messages at all, I'm reasonably sure Kontakt & Reaktor don't (though it may be possible with Kontakt's scripting (KSF)
     
    Edit to add: If it were me, the next thing I'd be doing is making sure the VSTs being used respond to patch change data.

    Yes, this is the situation. You've described it well.


    Actually Reaktor, Kore and Kontakt do respond to MIDI program changes - or at least I believe so. I am in the process of checking that out now. In some cases, they only react to channel 1 - so I have to get a bit creative in the channel assignments.


    Ideally, I'd like to choose a VST based on a MIDI program change - but that is probably not realistic. I don't think Sonar allows an application to adjust a VST assignment.


    I'm not all that fluent in using Sonar yet - I have more experience with Live.


    This is all a bit tricky and touchy and maybe even not possible or dependent on specific VST behaviors.



    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #18
    arachnaut
    Max Output Level: -67 dBFS
    • Total Posts : 1168
    • Joined: 2007/05/05 17:24:33
    • Location: Sunnyvale, CA USA
    • Status: offline
    Re:Using Sonar with a GM application - need some ideas 2012/05/09 10:05:50 (permalink)
    arachnaut


    Ideally, I'd like to choose a VST based on a MIDI program change - but that is probably not realistic. I don't think Sonar allows an application to adjust a VST assignment.


    But to be more general - it may be possible to assign a lot of channels and just choose one based on a MIDI program change.


    For example - suppose on track 1 I make a folder of 16 (or 128 or whatever) individual tracks. If the tracks are mute and enabled or volume-controlled by external events, then I can get the same thing by only allowing 1 of the 16 to voice.


    The same applies to the next folder of 16 sounds. And so on.


    Then dynamically I adjust which of each 16 in the sets sound based on program changes.


    That's the sort of idea I have - using some MIDI feature to enable/disable/choose an instrument track (if I can't load it programmatically).

    In Live I did this sort of thing using the rack track chooser features which are assigned by MIDI learn.

    - Jim Hurley -
    SONAR Platinum - x64  - Windows 10 Pro 
    ASUS P8P67 PRO Rev 3.0;  Core i7-2600K@4.4GHz; 16 GB G.SKILL Ripjaws X;
    GeForce GT 740; Saffire Pro14 MixControl 3.7; Axiom 61
    64-Bit audio, SR: 48kHz, ASIO 256 samples latency, Rec/Play I/O Buffers 512k, Total Round Trip Latency 13 ms, Pow-r 3 dither 
    #19
    Jump to:
    © 2025 APG vNext Commercial Version 5.1