Soundwise
Max Output Level: -62 dBFS
- Total Posts : 1419
- Joined: 2015/01/25 17:11:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/04 15:19:40
(permalink)
OK, her is working brundlefly's script ;NotePan.CAL by David Baay, modified significantly from the original by Alisa Miller ; ; This CAL script will insert alternating Pan (CC10) events 30 ticks before each note event at 1:01:030 or later. ; If any notes occur before 1:01:030, the Track Pan should be set to the value equal to the left pan setting that you ; intend to set using the CAL to set the initial pan position before playback starts. ; (do (int count 0) (int left 0) (int right 127) (int position 127) ; ;Get Min and Max Pan values to determine Pan changes (getInt left "Enter the left pan amount" 0 64) (getInt right "Enter the right pan amount" 64 127) (= position right) (forEachEvent (if (&& (>= Event.Time 3) (== Event.Kind NOTE)) (do (insert (- Event.Time 3) Event.Chan CONTROL 10 (= Control.Val position)) (if (<= position 64) (= position right) (= position left); else );end if );end do ); end if );end for );end do
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/04 16:10:44
(permalink)
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
Soundwise
Max Output Level: -62 dBFS
- Total Posts : 1419
- Joined: 2015/01/25 17:11:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/04 19:30:44
(permalink)
Thanks, brundlefly! Here is an updated version with predelay and time selection options: ; ;NotePan.CAL by Alisa Miller ;Thanks to David Baay (brundlefly) for useful ideas ; ;This CAL program will insert a user-defined alternating panning (CC 10) for each note event within a selected region or a clip at user-defined time from 0 to 240 ticks (1/16 of the project tempo) before the note. ; IMPORTANT! Some notes at the beginning of the project may need manual adjustment.
(do (int count 0) (int left 64) (int right 64) (int time 3) (= Now From) ;; Get Min and Max Pan values to determine Pan changes (getInt left "Enter the left pan amount?" 0 127) (getInt right "Enter the right pan amount?" 0 127) (getInt time "Enter the predelay time in ticks" 0 240) (forEachEvent (if (< Now Thru) (if (&& (== Event.Kind NOTE) (>= Event.Time time)) (do (if (== count 0) (insert (- Event.Time (- time 1)) Event.Chan CONTROL 10 (= Control.Val left)) ) (++ count) (insert (- Event.Time time) Event.Chan CONTROL 10 (= Control.Val right)) (if (== count 2) (= count 0) ; if count is 2, reset to 0 ) ) ) ) ) )
post edited by Soundwise - 2017/01/04 19:54:08
|
AdamGrossmanLG
Max Output Level: -62 dBFS
- Total Posts : 1436
- Joined: 2014/07/13 03:40:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/04 23:18:44
(permalink)
nice update. for anyone using a PPQN other than 960, you will need to modify the file accordingly for the ticks.
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 01:59:20
(permalink)
No, a tick is a tick. The amount of absolute time represented by a tick will vary with PPQ and tempo, but if you specify 10 ticks early, it will be 10 ticks at any PPQ. There isn't much point in operating at other PPQs in any case, as SONAR records and stores everything at 960 internally, and tick values in snap and quantize dialogs are referenced to 960PPQ regardless of the clock setting.
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
Boydie
Max Output Level: -83 dBFS
- Total Posts : 370
- Joined: 2010/02/28 14:55:04
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 02:56:17
(permalink)
SilverBlueMedallion coming back to this:
how do I do this if it is already in audio format?
I still think drawing in the pan automation is the best way to go There is a strong chance that there will be a repeating pattern so you will only have to draw the automation for one "loop" (or for each variation) Once you have drawn it in the PAN automation lane you can copy and paste the automation You can either go for "hard pans" by setting each note left of right - or you could draw in diagonal lines/curves so the beats "drift" left and right (or a mixture of the 2)
To check out my music please visit: http://soundcloud.com/boydiemusic Twitter: https://twitter.com/BoydieMusic Specs: Vortex Laptop i7-3740QM (2.70GHz) 6MB, 32GB KINGSTON HYPER-X GENESIS 1600MHz SODIMM DDR3, 240GB INTEL® 520 SERIES SSD, 750GB SEAGATE MOMENTUS XT HYBRID, BluRay, USB 2 & 3, Firewire, Audio Interface: M-Audio Fast Track Ultra + Focusrite VRM Box
|
Soundwise
Max Output Level: -62 dBFS
- Total Posts : 1419
- Joined: 2015/01/25 17:11:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 07:46:46
(permalink)
SilverBlueMedallion nice update. for anyone using a PPQN other than 960, you will need to modify the file accordingly for the ticks.
That's the beauty of CAL - you can modify or create any script the way you need.
|
rogeriodec
Max Output Level: -75 dBFS
- Total Posts : 753
- Joined: 2004/04/09 13:55:04
- Location: Brazil
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 12:52:42
(permalink)
Soundwise That's the beauty of CAL - you can modify or create any script the way you need.
Hello! Would you find it easy to create a CAL script for this topic ( How to select just the top or bottom MIDI notes)? The idea would be an interface that would ask which note (known as "voice" in Sibelius) to keep selected: top note, bottom note, or first note, 2nd note, and so on. For the CAL Script to work, it needs all the events to be pre-selected, so the idea is to do the reverse, deselect the unwanted notes and leave only the desired notes selected. I'm even trying to venture to learn CAL Script, but I did not find anything that could deselect notes. Could you help?
rogeriodec.com.br* Cakewalk By Bandlabs (always lastest versions), Window 10 x64* Focusrite Scarlett Solo Audio Interface* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz* 3 LCD Monitors* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 13:18:09
(permalink)
I could be wrong, but don't think CAL has the capability to leave a specific subset of a clip selected on exit. But it could do what 'Split Notes' does, and automatically cut-paste the specified subset to another track. I've thought about giving it a whirl, myself, after reading that thread.
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
scook
Forum Host
- Total Posts : 24146
- Joined: 2005/07/27 13:43:57
- Location: TX
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 13:34:34
(permalink)
☄ Helpfulby rogeriodec 2017/01/05 15:22:16
Yes, AFAIK, there is no function to manipulate the selection criteria. It would require setting up a new track to act as the buffer for the new selection. For those interested in rolling their own CAL scripts, in addition to the pdf mentioned above, I find the "CAL Reference.chm" bundled with the CAL Editor handy. I do not recall if the editor is useful. I use a different editor.
|
Soundwise
Max Output Level: -62 dBFS
- Total Posts : 1419
- Joined: 2015/01/25 17:11:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 14:58:15
(permalink)
rogeriodec
Soundwise That's the beauty of CAL - you can modify or create any script the way you need.
Hello! Would you find it easy to create a CAL script for this topic (How to select just the top or bottom MIDI notes)? The idea would be an interface that would ask which note (known as "voice" in Sibelius) to keep selected: top note, bottom note, or first note, 2nd note, and so on. For the CAL Script to work, it needs all the events to be pre-selected, so the idea is to do the reverse, deselect the unwanted notes and leave only the desired notes selected. I'm even trying to venture to learn CAL Script, but I did not find anything that could deselect notes. Could you help?
I believe this is possible if used for chords and not polyphonic material, such as fugues.
|
AdamGrossmanLG
Max Output Level: -62 dBFS
- Total Posts : 1436
- Joined: 2014/07/13 03:40:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 15:17:50
(permalink)
brundlefly No, a tick is a tick. The amount of absolute time represented by a tick will vary with PPQ and tempo, but if you specify 10 ticks early, it will be 10 ticks at any PPQ. There isn't much point in operating at other PPQs in any case, as SONAR records and stores everything at 960 internally, and tick values in snap and quantize dialogs are referenced to 960PPQ regardless of the clock setting.
oh maybe my understanding is off then. For me, I work at 96 PPQN. It's just something I always have done... I think because old school MPC timing was 96 PPQN, so for me 3 ticks is equivalent to 30 ticks at 960 PPQN no? sorry if I mispoke about this if I am wrong.
|
Keni
Max Output Level: -17.5 dBFS
- Total Posts : 5769
- Joined: 2003/11/04 10:42:15
- Location: Willits, CA USA
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 17:26:00
(permalink)
I belueve the span in time is equivalent but the 960 has ten sub ticks within each 1 tick at 96...?
|
AdamGrossmanLG
Max Output Level: -62 dBFS
- Total Posts : 1436
- Joined: 2014/07/13 03:40:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/05 23:49:40
(permalink)
brundlefly No, a tick is a tick. The amount of absolute time represented by a tick will vary with PPQ and tempo, but if you specify 10 ticks early, it will be 10 ticks at any PPQ. There isn't much point in operating at other PPQs in any case, as SONAR records and stores everything at 960 internally, and tick values in snap and quantize dialogs are referenced to 960PPQ regardless of the clock setting.
coming back to this point, i think what i said still stands true. It was programmed to change the paramter 30 ticks behind the note... BUT if at 96 PPQN, 30 ticks is more than a quarter note. Would need to set the CAL script for 3 ticks, no?
|
SuperG
Max Output Level: -63 dBFS
- Total Posts : 1371
- Joined: 2012/10/19 16:09:18
- Location: Edgewood, NM
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/06 00:36:51
(permalink)
30 ticks at 96 ppqn is just shy of a third of a quarter note in duration. An eighth would be 48 ticks, and a 16th would be 24, so there's race condition there. I would think that using a very short pan change interval would be harmless with soft synths. The only issue I can think of is is with external hardware synths - It's possible that some really old equipment might have a fixed limit as to how fast it can pan.
post edited by SuperG - 2017/01/06 01:30:09
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/06 03:08:47
(permalink)
SilverBlueMedallion It was programmed to change the paramter 30 ticks behind the note... BUT if at 96 PPQN, 30 ticks is more than a quarter note. Would need to set the CAL script for 3 ticks, no?
I thought you're 'nice update' reponse was to Alisa's update which lets you enter the desired tick value. You can easily add the 'time' variable my version if you prefer it.
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
AdamGrossmanLG
Max Output Level: -62 dBFS
- Total Posts : 1436
- Joined: 2014/07/13 03:40:34
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/06 11:03:13
(permalink)
brundlefly
SilverBlueMedallion It was programmed to change the paramter 30 ticks behind the note... BUT if at 96 PPQN, 30 ticks is more than a quarter note. Would need to set the CAL script for 3 ticks, no?
I thought you're 'nice update' reponse was to Alisa's update which lets you enter the desired tick value. You can easily add the 'time' variable my version if you prefer it.
yes but if a project is in 96 PPQN, wouldnt i need to make the tick count '3' instead of '30'?
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/01/06 12:58:08
(permalink)
What I'm saying is that Alisa's script that was posted right before your 'nice update' response has already been modified to let the user specify an appropriate 'time' value instead of hard-coding a value as I did. For my version as it stands, yes, 3 ticks at 96PPQ is equivalent to 30 at 960, and you would either need to change the hard-coded value, or add the 'time' variable that Alisa used. I thought about it, but was just too lazy.
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
Keni
Max Output Level: -17.5 dBFS
- Total Posts : 5769
- Joined: 2003/11/04 10:42:15
- Location: Willits, CA USA
- Status: offline
Re: How To Alternate Panning (Per Note)?
2017/02/03 12:27:37
(permalink)
Can anyone tell me a good way to save a copy of the file?
I can't seem to get a copy/paste as it won't scroll while in its copy mode.
Thanks. I'd love to play with this...
|