Csound Csound-dev Csound-tekno Search About

[Csnd] BPM Synced LFO

Date2018-04-08 20:48
FromMarvin Juneyoung Kim
Subject[Csnd] BPM Synced LFO
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 Csound@listserv.heanet.ie 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

Date2018-04-08 21:34
FromRory Walsh
SubjectRe: [Csnd] BPM Synced LFO
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 21:45
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 22:26
FromToby Kim
SubjectRe: [Csnd] BPM Synced LFO

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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 22:39
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
AttachmentsLFOStutter.zip  
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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 22:41
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
@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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 22:53
FromRory Walsh
SubjectRe: [Csnd] BPM Synced LFO
AttachmentsLFOStutter_MarvinKim.csd  
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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 23:02
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <rorywalsh@ear.ie> 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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 23:19
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
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 <jkim872@berklee.edu> wrote:
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <rorywalsh@ear.ie> 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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 23:48
FromRory Walsh
SubjectRe: [Csnd] BPM Synced LFO
AttachmentsLFOStutter_MarvinKim.csd  
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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> wrote:
Thank you Rory! 

On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <rorywalsh@ear.ie> 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 <jkim872@berklee.edu> 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 <jkim872@berklee.edu> 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 <rorywalsh@ear.ie> wrote:
Are you sending a BPM from the score?

On 8 April 2018 at 20:48, Marvin Juneyoung Kim <jkim872@berklee.edu> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-09 00:58
FromJohn ff
SubjectRe: [Csnd] BPM Synced LFO
Labels must start with a letter of either case

⁣Sent from TypeApp ​

On Apr 8, 2018, 23:20, at 23:20, Marvin Juneyoung Kim  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
>
>wrote:
>
>> Thank you Rory!
>>
>> On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh  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 
>>> 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 <
>>>> jkim872@berklee.edu> 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 
>wrote:
>>>>>
>>>>>> Are you sending a BPM from the score?
>>>>>>
>>>>>> On 8 April 2018 at 20:48, Marvin Juneyoung Kim
>
>>>>>> 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 Csound@listserv.heanet.ie
>>>>>>> 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 Csound@listserv.heanet.ie
>>>>>> 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 Csound@listserv.heanet.ie
>>>> 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 Csound@listserv.heanet.ie
>>> 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
>Csound@listserv.heanet.ie
>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
Csound@listserv.heanet.ie
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

Date2018-04-13 03:40
FromMarvin Juneyoung Kim
SubjectRe: [Csnd] BPM Synced LFO
Thank you both Rory and John! 

On Sun, Apr 8, 2018 at 7:58 PM, John ff <jpff@codemist.co.uk> 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 <jkim872@BERKLEE.EDU> 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
><jkim872@berklee.edu>
>wrote:
>
>> Thank you Rory!
>>
>> On Sun, Apr 8, 2018 at 5:53 PM, Rory Walsh <rorywalsh@ear.ie> 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 <jkim872@berklee.edu>
>>> 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 <
>>>> jkim872@berklee.edu> 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 <rorywalsh@ear.ie>
>wrote:
>>>>>
>>>>>> Are you sending a BPM from the score?
>>>>>>
>>>>>> On 8 April 2018 at 20:48, Marvin Juneyoung Kim
><jkim872@berklee.edu>
>>>>>> 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 Csound@listserv.heanet.ie
>>>>>>> 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 Csound@listserv.heanet.ie
>>>>>> 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 Csound@listserv.heanet.ie
>>>> 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 Csound@listserv.heanet.ie
>>> 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
>Csound@listserv.heanet.ie
>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
Csound@listserv.heanet.ie
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 Csound@listserv.heanet.ie 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