[Csnd] BPM Synced LFO

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] BPM Synced LFO

Marvin Juneyoung Kim
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

rorywalsh
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Toby Kim

Try this. I'm not sure if it's what you want


<CsoundSynthesizer>

<CsOptions>

;-odac -d

</CsOptions>

<CsInstruments>


sr = 44100

ksmps = 32

nchnls = 1

0dbfs = 1




gklfo init 0



instr 1


a1 oscil .5, cpsmidinn(p4), 1


out gklfo * a1


endin



instr 2



irate = p4

k1 oscil .5, irate, 1

k1 = k1 + .5


gklfo = k1


endin


</CsInstruments>

<CsScore>


f1 0 4096 10 1


#define BPM #120#

t 0 $BPM



#define BEAT #[$BPM/60]#


#define q #$BEAT#


i1 0 6 60

i2 0 6 $q

</CsScore>

</CsoundSynthesizer>


On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
In reply to this post by Marvin Juneyoung Kim
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

LFOStutter.zip (1M) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
@Toby

I just saw your email, that is what I was trying to do. Thanks!

On Sun, Apr 8, 2018 at 5:39 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

rorywalsh
In reply to this post by Marvin Juneyoung Kim
diskin needs two outputs if you are reading a stereo file. You only have one. It should be something like:

asig, asig2 diskin ...

You can't test an i-rate variable against a string as an i-rate variable will always be a number. 16d and 16t are not numbers, they could be strings thought. What you can do is pass a string from the score and then test that using strcmp which will return 0 if the strings are the same. I've attached the updated file. Note I've also updated the line with diskin, but you'll need to do something with the extra channel 'asig2'. Right now it is not used anywhere so you're only getting the left channel in the output.



 

On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

LFOStutter_MarvinKim.csd (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <[hidden email]> wrote:
diskin needs two outputs if you are reading a stereo file. You only have one. It should be something like:

asig, asig2 diskin ...

You can't test an i-rate variable against a string as an i-rate variable will always be a number. 16d and 16t are not numbers, they could be strings thought. What you can do is pass a string from the score and then test that using strcmp which will return 0 if the strings are the same. I've attached the updated file. Note I've also updated the line with diskin, but you'll need to do something with the extra channel 'asig2'. Right now it is not used anywhere so you're only getting the left channel in the output.



 

On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
Sorry to bother you again Rory, but I'm getting a syntax error with any line that contains d, t at the end of the string.  

if (strcmp(Ssyncrate, "16d")==0) kgoto 16d


Is strcmp also not able to take the alphabetical letters? 


On Sun, Apr 8, 2018 at 6:02 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <[hidden email]> wrote:
diskin needs two outputs if you are reading a stereo file. You only have one. It should be something like:

asig, asig2 diskin ...

You can't test an i-rate variable against a string as an i-rate variable will always be a number. 16d and 16t are not numbers, they could be strings thought. What you can do is pass a string from the score and then test that using strcmp which will return 0 if the strings are the same. I've attached the updated file. Note I've also updated the line with diskin, but you'll need to do something with the extra channel 'asig2'. Right now it is not used anywhere so you're only getting the left channel in the output.



 

On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

rorywalsh
I don't think you should be using numbers as labels with goto, it just feels wrong and I'm not sure how the parser handles the. Can you give them a more meaningful name, and something that clearly shows they're labels and not numbers? I've modified the file again can renamed each label with a division_ before the number. It all works fine now, but you may want to choose better label names.

FWIW, if you used if / elseif statements, you wouldn't need any labels at all...



On 8 April 2018 at 23:19, Marvin Juneyoung Kim <[hidden email]> wrote:
Sorry to bother you again Rory, but I'm getting a syntax error with any line that contains d, t at the end of the string.  

if (strcmp(Ssyncrate, "16d")==0) kgoto 16d


Is strcmp also not able to take the alphabetical letters? 


On Sun, Apr 8, 2018 at 6:02 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <[hidden email]> wrote:
diskin needs two outputs if you are reading a stereo file. You only have one. It should be something like:

asig, asig2 diskin ...

You can't test an i-rate variable against a string as an i-rate variable will always be a number. 16d and 16t are not numbers, they could be strings thought. What you can do is pass a string from the score and then test that using strcmp which will return 0 if the strings are the same. I've attached the updated file. Note I've also updated the line with diskin, but you'll need to do something with the extra channel 'asig2'. Right now it is not used anywhere so you're only getting the left channel in the output.



 

On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello again Rory,

This is a csd file I was working on. 

I commented out the dotted and triplet divisions because they are giving me syntax error. 

I'm also getting syntax error from diskin2 saying;

INIT ERROR in instr 2: diskin2: number of output args inconsistent with number of file channels


I checked the number of channels of my sample file and it's two channels. 


Do you know why I'm I getting this message?


Thank you


Best, 

Marvin



On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <[hidden email]> wrote:
Hi Rory, 

I just found the alternative. I'm not sure if it's gonna work but I'm using a Macro for BPM value which is defined before the LFO so I can use that value for the note divisions. Then I'm doing t 0 60/$BPM to set the BPM in the score. I'm still working on it so I will upload the CSD when I get something. 

One other problem I encountered is that I cannot have alpabetic letter in i rate.
I'm using a conditional statement to determine the note division of LFO and the divisions are labeled as 16, 16d, 16t, etc. 
I don't want them to be purely numeric so I don't have to do the math everytime I think about the dotted or triplets. 
Do you know if there's a way to deal with this? I imagined that it might be possible if I'm using something else other than i to control the rate in the score, but I don't know if there's a way to do so. 

Please let me know

Thank you!



On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <[hidden email]> wrote:
Hello all,

I'm trying to make the global LFOs in the orchestra to sync the cycle with score BPM (in a rate of note division). Is there any way I could possibly achieve this?

Thank you

--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Best,

Marvin



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

LFOStutter_MarvinKim.csd (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

jpff
In reply to this post by Marvin Juneyoung Kim
Labels must start with a letter of either case

⁣Sent from TypeApp ​

On Apr 8, 2018, 23:20, at 23:20, Marvin Juneyoung Kim <[hidden email]> wrote:

>Sorry to bother you again Rory, but I'm getting a syntax error with any
>line that contains d, t at the end of the string.
>
>if (strcmp(Ssyncrate, "16d")==0) kgoto 16d
>
>
>Is strcmp also not able to take the alphabetical letters?
>
>On Sun, Apr 8, 2018 at 6:02 PM, Marvin Juneyoung Kim
><[hidden email]>
>wrote:
>
>> Thank you Rory!
>>
>> On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <[hidden email]> wrote:
>>
>>> diskin needs two outputs if you are reading a stereo file. You only
>have
>>> one. It should be something like:
>>>
>>> asig, asig2 diskin ...
>>>
>>> You can't test an i-rate variable against a string as an i-rate
>variable
>>> will always be a number. 16d and 16t are not numbers, they could be
>strings
>>> thought. What you can do is pass a string from the score and then
>test that
>>> using strcmp which will return 0 if the strings are the same. I've
>attached
>>> the updated file. Note I've also updated the line with diskin, but
>you'll
>>> need to do something with the extra channel 'asig2'. Right now it is
>not
>>> used anywhere so you're only getting the left channel in the output.
>>>
>>>
>>>
>>>
>>>
>>> On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]>
>>> wrote:
>>>
>>>> Hello again Rory,
>>>>
>>>> This is a csd file I was working on.
>>>>
>>>> I commented out the dotted and triplet divisions because they are
>giving
>>>> me syntax error.
>>>>
>>>> I'm also getting syntax error from diskin2 saying;
>>>>
>>>> INIT ERROR in instr 2: diskin2: number of output args inconsistent
>with
>>>> number of file channels
>>>>
>>>>
>>>> I checked the number of channels of my sample file and it's two
>>>> channels.
>>>>
>>>>
>>>> Do you know why I'm I getting this message?
>>>>
>>>>
>>>> Thank you
>>>>
>>>>
>>>> Best,
>>>>
>>>> Marvin
>>>>
>>>>
>>>>
>>>> On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <
>>>> [hidden email]> wrote:
>>>>
>>>>> Hi Rory,
>>>>>
>>>>> I just found the alternative. I'm not sure if it's gonna work but
>I'm
>>>>> using a Macro for BPM value which is defined before the LFO so I
>can use
>>>>> that value for the note divisions. Then I'm doing t 0 60/$BPM to
>set the
>>>>> BPM in the score. I'm still working on it so I will upload the CSD
>when I
>>>>> get something.
>>>>>
>>>>> One other problem I encountered is that I cannot have alpabetic
>letter
>>>>> in i rate.
>>>>> I'm using a conditional statement to determine the note division
>of LFO
>>>>> and the divisions are labeled as 16, 16d, 16t, etc.
>>>>> I don't want them to be purely numeric so I don't have to do the
>math
>>>>> everytime I think about the dotted or triplets.
>>>>> Do you know if there's a way to deal with this? I imagined that it
>>>>> might be possible if I'm using something else other than i to
>control the
>>>>> rate in the score, but I don't know if there's a way to do so.
>>>>>
>>>>> Please let me know
>>>>>
>>>>> Thank you!
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]>
>wrote:
>>>>>
>>>>>> Are you sending a BPM from the score?
>>>>>>
>>>>>> On 8 April 2018 at 20:48, Marvin Juneyoung Kim
><[hidden email]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello all,
>>>>>>>
>>>>>>> I'm trying to make the global LFOs in the orchestra to sync the
>cycle
>>>>>>> with score BPM (in a rate of note division). Is there any way I
>could
>>>>>>> possibly achieve this?
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>> --
>>>>>>> Best,
>>>>>>>
>>>>>>> Marvin
>>>>>>> Csound mailing list [hidden email]
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>>>>> features can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list [hidden email]
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
>to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>>>> features can be posted here
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best,
>>>>>
>>>>> Marvin
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best,
>>>>
>>>> Marvin
>>>> Csound mailing list [hidden email]
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
>to
>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>> features can be posted here
>>>>
>>>
>>> Csound mailing list [hidden email]
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and
>features
>>> can be posted here
>>>
>>
>>
>>
>> --
>> Best,
>>
>> Marvin
>>
>
>
>
>--
>Best,
>
>Marvin
>
>Csound mailing list
>[hidden email]
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] BPM Synced LFO

Marvin Juneyoung Kim
Thank you both Rory and John! 

On Sun, Apr 8, 2018 at 7:58 PM, John ff <[hidden email]> wrote:
Labels must start with a letter of either case

⁣Sent from TypeApp ​

On Apr 8, 2018, 23:20, at 23:20, Marvin Juneyoung Kim <[hidden email]> wrote:
>Sorry to bother you again Rory, but I'm getting a syntax error with any
>line that contains d, t at the end of the string.
>
>if (strcmp(Ssyncrate, "16d")==0) kgoto 16d
>
>
>Is strcmp also not able to take the alphabetical letters?
>
>On Sun, Apr 8, 2018 at 6:02 PM, Marvin Juneyoung Kim
><[hidden email]>
>wrote:
>
>> Thank you Rory!
>>
>> On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <[hidden email]> wrote:
>>
>>> diskin needs two outputs if you are reading a stereo file. You only
>have
>>> one. It should be something like:
>>>
>>> asig, asig2 diskin ...
>>>
>>> You can't test an i-rate variable against a string as an i-rate
>variable
>>> will always be a number. 16d and 16t are not numbers, they could be
>strings
>>> thought. What you can do is pass a string from the score and then
>test that
>>> using strcmp which will return 0 if the strings are the same. I've
>attached
>>> the updated file. Note I've also updated the line with diskin, but
>you'll
>>> need to do something with the extra channel 'asig2'. Right now it is
>not
>>> used anywhere so you're only getting the left channel in the output.
>>>
>>>
>>>
>>>
>>>
>>> On 8 April 2018 at 22:39, Marvin Juneyoung Kim <[hidden email]>
>>> wrote:
>>>
>>>> Hello again Rory,
>>>>
>>>> This is a csd file I was working on.
>>>>
>>>> I commented out the dotted and triplet divisions because they are
>giving
>>>> me syntax error.
>>>>
>>>> I'm also getting syntax error from diskin2 saying;
>>>>
>>>> INIT ERROR in instr 2: diskin2: number of output args inconsistent
>with
>>>> number of file channels
>>>>
>>>>
>>>> I checked the number of channels of my sample file and it's two
>>>> channels.
>>>>
>>>>
>>>> Do you know why I'm I getting this message?
>>>>
>>>>
>>>> Thank you
>>>>
>>>>
>>>> Best,
>>>>
>>>> Marvin
>>>>
>>>>
>>>>
>>>> On Sun, Apr 8, 2018 at 4:45 PM, Marvin Juneyoung Kim <
>>>> [hidden email]> wrote:
>>>>
>>>>> Hi Rory,
>>>>>
>>>>> I just found the alternative. I'm not sure if it's gonna work but
>I'm
>>>>> using a Macro for BPM value which is defined before the LFO so I
>can use
>>>>> that value for the note divisions. Then I'm doing t 0 60/$BPM to
>set the
>>>>> BPM in the score. I'm still working on it so I will upload the CSD
>when I
>>>>> get something.
>>>>>
>>>>> One other problem I encountered is that I cannot have alpabetic
>letter
>>>>> in i rate.
>>>>> I'm using a conditional statement to determine the note division
>of LFO
>>>>> and the divisions are labeled as 16, 16d, 16t, etc.
>>>>> I don't want them to be purely numeric so I don't have to do the
>math
>>>>> everytime I think about the dotted or triplets.
>>>>> Do you know if there's a way to deal with this? I imagined that it
>>>>> might be possible if I'm using something else other than i to
>control the
>>>>> rate in the score, but I don't know if there's a way to do so.
>>>>>
>>>>> Please let me know
>>>>>
>>>>> Thank you!
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Apr 8, 2018 at 4:34 PM, Rory Walsh <[hidden email]>
>wrote:
>>>>>
>>>>>> Are you sending a BPM from the score?
>>>>>>
>>>>>> On 8 April 2018 at 20:48, Marvin Juneyoung Kim
><[hidden email]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello all,
>>>>>>>
>>>>>>> I'm trying to make the global LFOs in the orchestra to sync the
>cycle
>>>>>>> with score BPM (in a rate of note division). Is there any way I
>could
>>>>>>> possibly achieve this?
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>> --
>>>>>>> Best,
>>>>>>>
>>>>>>> Marvin
>>>>>>> Csound mailing list [hidden email]
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs
>reports to
>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>>>>> features can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list [hidden email]
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
>to
>>>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>>>> features can be posted here
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best,
>>>>>
>>>>> Marvin
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best,
>>>>
>>>> Marvin
>>>> Csound mailing list [hidden email]
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
>to
>>>> https://github.com/csound/csound/issues Discussions of bugs and
>>>> features can be posted here
>>>>
>>>
>>> Csound mailing list [hidden email]
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and
>features
>>> can be posted here
>>>
>>
>>
>>
>> --
>> Best,
>>
>> Marvin
>>
>
>
>
>--
>Best,
>
>Marvin
>
>Csound mailing list
>[hidden email]
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Best,

Marvin
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here