| I also want to thank the developers working on this, its not easy work, and its going to be sweet when you're done. I have an Acer android tablet and can't wait to be able to use csound on it.
On Nov 25, 2011 4:03 PM, < csound-request@lists.bath.ac.uk> wrote:
Table of contents:
1. Re: [Csnd] best way to jump in a song - peiman khosravi <peimankhosravi@gmail.com>
2. [Csnd] Simple phase modulation gui - Giorgio Zucco <giorgiobrx@libero.it>
3. Re: [Csnd] the challenge of porting to android - joachim heintz <jh@joachimheintz.de>
4. Re: [Csnd] Simple phase modulation gui - Victor Lazzarini <Victor.Lazzarini@nuim.ie>
5. re: [Csnd] the challenge of porting to android - Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>
6. Re: [Csnd] the challenge of porting to android - Rory Walsh <rorywalsh@ear.ie>
7. Re: [Csnd] the challenge of porting to android - luis jure <ljc@internet.com.uy>
8. Re: [Csnd] best way to jump in a song - Michele Nasti <michele.nasti@gmail.com>
9. Re: [Csnd] best way to jump in a song - peiman khosravi <peimankhosravi@gmail.com>
10. Re: [Csnd] best way to jump in a song - Michele Nasti <michele.nasti@gmail.com>
---------- Forwarded message ---------- From: peiman khosravi <peimankhosravi@gmail.com> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 09:53:27 +0000 Subject: Re: [Csnd] best way to jump in a song But note that you probably don't want to define your table in the
"pass" section but either globally or earlier in the same instrument.
Otherwise the table will be recreated every time you jump, which is
unnecessary.
Best,
P
On 24 November 2011 19:25, peiman khosravi <peimankhosravi@gmail.com> wrote:
> OK then just re-initiate the instrument using something like this:
>
>
> ktrig changed koffset
> if ktrig = 1 then
> reinit pass
> endif
>
> pass:
>
> ioffset = i(koffset)
>
> ;your code here:
> ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>
>
> Best,
>
> Peiman
>
>
> On 24 November 2011 19:13, Michele Nasti <michele.nasti@gmail.com> wrote:
>> This is part of my code:
>>
>> <CsInstruments>
>>
>> gifil0 ftgen 0, 0, 0, 1,
>> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>>
>> ;general values for the pvstanal opcode
>>
>> giamp = 1 ;amplitude scaling
>>
>> gipitch = 1 ;pitch scaling
>>
>> gidet = 0 ;onset detection
>>
>> giwrap = 0 ;no loop reading
>>
>> giskip = 0 ;start at the beginning
>>
>> gifftsiz = 1024 ;fft size
>>
>> giovlp = gifftsiz/8 ;overlap size
>>
>> githresh = 0 ;threshold
>>
>> instr 1
>>
>> kvol0 = 1;
>>
>> kstretch = 1;
>>
>> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> gifftsiz, giovlp, githresh
>>
>> aout0 pvsynth fsig0
>>
>> outch 1, aout0*kvol0,
>>
>> endin
>>
>> </CsInstruments>
>>
>> <CsScore>
>>
>> i 1 0 3600
>>
>> </CsScore>
>>
>> 2011/11/24 Rory Walsh <rorywalsh@ear.ie>
>>>
>>> If you have a song in a function table you can jump to whatever point
>>> you like using a table opcode which allows direct indexing?
>>>
>>>
>>> On 24 November 2011 18:33, Michele Nasti <michele.nasti@gmail.com> wrote:
>>> > Hi there, I resolved my problems with the loop.
>>> > suppose I have a song loaded in a Functon Table.
>>> > Suppose that I want to dinamically change the start of the song in this
>>> > piece. My problem is, if I'm playing a song, I want to jump to a
>>> > specified
>>> > second of the song and play from there.
>>> > there should be a variable "gkCurrentPosition", and if I change it (via
>>> > chnget) , I should hear the change.
>>> > Suggestions? what is the best code?
>>> > Michele
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>
---------- Forwarded message ---------- From: Giorgio Zucco <giorgiobrx@libero.it> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 03:29:44 -0800 (PST) Subject: [Csnd] Simple phase modulation gui Hi,I'm just approaching to phase modulation,my idea is to build an algorithm
inspired by the classic DX7 but not as emulation, I serve as the basis for a
course on Csound that I will keep, this simple idea is clear enough for a
beginner?thanks
Giorgio
http://csound.1045644.n5.nabble.com/file/n5022582/prototype_PM_gui.csd
prototype_PM_gui.csd
--
View this message in context: http://csound.1045644.n5.nabble.com/Simple-phase-modulation-gui-tp5022582p5022582.html
Sent from the Csound - General mailing list archive at Nabble.com.
---------- Forwarded message ---------- From: joachim heintz <jh@joachimheintz.de> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 12:30:36 +0100 Subject: Re: [Csnd] the challenge of porting to android steven (and all the others involved in this project) -
i just want to appreciate your work on this. it's so important for the
future of csound! though i do not have any mobile device like this, i
think i will buy an android if csound is running there.
thanks -
joachim
Am 20.11.2011 21:50, schrieb Steven Yi:
> Hi Brian,
>
> I'm already very far on with this. I have csnd.jar and libcsound
> compiled for android, but we ran into a snag where we had to get rid
> of use of temporary files by csound when parsing orc/sco. John took
> care of that (you could actually not even use orc/sco/csd files and
> just pass in strings for those via API) by redoing some internals to
> csound though the latest I tried with my compile still crashes out
> somewhere. Otherwise, Victor has some custom OpenSL code and I wrote
> a custom AndroidCsound class that subclasses Csound and handles
> setting up pointers for audio callbacks. So we're working on it, but
> it's crashing at the moment and I'm going to be off and on online this
> week through Saturday (taking a small holiday with my wife). I'm
> guess once we can get to rendering and procesing audio live, it'll
> still take a little bit of time to make sure everything is working
> correctly and to do documentation/examples before an official release.
>
> Thanks,
> steven
>
>
> On Sun, Nov 20, 2011 at 8:34 PM, Brian Redfern <brianwredfern@gmail.com> wrote:
>> I'm trying to use the existing java code as my guide, for the csnd.jar
>> wrapper. However that's not enough for an android port for realtime
>> audio. If you are compiling to wav and then listening to the results
>> you can get away with a csound port with no audio support, and the
>> playback happens after compilation. That's one approach, but it
>> doesn't take advantage of the power of my android tablet.
>>
>> Michael Goggins has a working approach, although I can't get the
>> Silencio scripts to run on android yet.
>>
>> What would be necessary is to add support for Open SL ES realtime
>> sound output from csound, so you have a port of csnd.jar for dalvik so
>> java developers can then use csound as their backend synth engine and
>> build front ends for it.
>>
>> People who only have an android 2.2 device likely don't have enough
>> firepower to run csound in realtime on their device. But tons of
>> android devices are fast enough to run it in realtime, at least a
>> port of the OLPC version of csound with java/dalvik bindings rather
>> than python bindings.
>>
>> That way you only need to support Open SL ES for realtime audio
>> output, you don't have to send audio back through JNI as with 2.2 and
>> below.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
---------- Forwarded message ---------- From: Victor Lazzarini <Victor.Lazzarini@nuim.ie> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 12:03:07 +0000 Subject: Re: [Csnd] Simple phase modulation gui There is a good chapter on this in the Csound book (by Russell Pinkston). That's a good starting point.
On 25 Nov 2011, at 11:29, Giorgio Zucco wrote:
> Hi,I'm just approaching to phase modulation,my idea is to build an algorithm
> inspired by the classic DX7 but not as emulation, I serve as the basis for a
> course on Csound that I will keep, this simple idea is clear enough for a
> beginner?thanks
>
> Giorgio
>
>
>
>
>
> http://csound.1045644.n5.nabble.com/file/n5022582/prototype_PM_gui.csd
> prototype_PM_gui.csd
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Simple-phase-modulation-gui-tp5022582p5022582.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
---------- Forwarded message ---------- From: "Øyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> To: "csound@lists.bath.ac.uk" <csound@lists.bath.ac.uk>
Date: Fri, 25 Nov 2011 14:24:05 +0000 Subject: re: [Csnd] the challenge of porting to android And related to this, I had the pleasure of getting Csound on iPad and iPhone demonstrated here in Trondheim today. It is totally great. Victor was here for a workshop we organized (DSP Ear Training). It is very very inspiring to see Csound find it's way to these new areas and new platforms. We'll for sure invent applications that makes good use of it, that spreads the word and the sound and the tool to new users.
Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
________________________________________
Fra: joachim heintz [jh@joachimheintz.de]
Sendt: 25. november 2011 12:30
Til: csound@lists.bath.ac.uk
Emne: Re: [Csnd] the challenge of porting to android
steven (and all the others involved in this project) -
i just want to appreciate your work on this. it's so important for the
future of csound! though i do not have any mobile device like this, i
think i will buy an android if csound is running there.
thanks -
joachim
Am 20.11.2011 21:50, schrieb Steven Yi:
> Hi Brian,
>
> I'm already very far on with this. I have csnd.jar and libcsound
> compiled for android, but we ran into a snag where we had to get rid
> of use of temporary files by csound when parsing orc/sco. John took
> care of that (you could actually not even use orc/sco/csd files and
> just pass in strings for those via API) by redoing some internals to
> csound though the latest I tried with my compile still crashes out
> somewhere. Otherwise, Victor has some custom OpenSL code and I wrote
> a custom AndroidCsound class that subclasses Csound and handles
> setting up pointers for audio callbacks. So we're working on it, but
> it's crashing at the moment and I'm going to be off and on online this
> week through Saturday (taking a small holiday with my wife). I'm
> guess once we can get to rendering and procesing audio live, it'll
> still take a little bit of time to make sure everything is working
> correctly and to do documentation/examples before an official release.
>
> Thanks,
> steven
>
>
> On Sun, Nov 20, 2011 at 8:34 PM, Brian Redfern <brianwredfern@gmail.com> wrote:
>> I'm trying to use the existing java code as my guide, for the csnd.jar
>> wrapper. However that's not enough for an android port for realtime
>> audio. If you are compiling to wav and then listening to the results
>> you can get away with a csound port with no audio support, and the
>> playback happens after compilation. That's one approach, but it
>> doesn't take advantage of the power of my android tablet.
>>
>> Michael Goggins has a working approach, although I can't get the
>> Silencio scripts to run on android yet.
>>
>> What would be necessary is to add support for Open SL ES realtime
>> sound output from csound, so you have a port of csnd.jar for dalvik so
>> java developers can then use csound as their backend synth engine and
>> build front ends for it.
>>
>> People who only have an android 2.2 device likely don't have enough
>> firepower to run csound in realtime on their device. But tons of
>> android devices are fast enough to run it in realtime, at least a
>> port of the OLPC version of csound with java/dalvik bindings rather
>> than python bindings.
>>
>> That way you only need to support Open SL ES for realtime audio
>> output, you don't have to send audio back through JNI as with 2.2 and
>> below.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
---------- Forwarded message ---------- From: Rory Walsh <rorywalsh@ear.ie> To: csound@lists.bath.ac.uk Date: Fri, 25 Nov 2011 15:15:54 +0000
Subject: Re: [Csnd] the challenge of porting to android I'm more interested in the "DSP Ear Training" part of this mail. We
discussed it briefly at the LAC. Do you plan to put any material/info
online? I think it's a great idea.
On 25 November 2011 14:24, Øyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
> And related to this, I had the pleasure of getting Csound on iPad and iPhone demonstrated here in Trondheim today. It is totally great. Victor was here for a workshop we organized (DSP Ear Training). It is very very inspiring to see Csound find it's way to these new areas and new platforms. We'll for sure invent applications that makes good use of it, that spreads the word and the sound and the tool to new users.
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
>
> ________________________________________
> Fra: joachim heintz [jh@joachimheintz.de]
> Sendt: 25. november 2011 12:30
> Til: csound@lists.bath.ac.uk
> Emne: Re: [Csnd] the challenge of porting to android
>
> steven (and all the others involved in this project) -
> i just want to appreciate your work on this. it's so important for the
> future of csound! though i do not have any mobile device like this, i
> think i will buy an android if csound is running there.
> thanks -
> joachim
>
>
> Am 20.11.2011 21:50, schrieb Steven Yi:
>> Hi Brian,
>>
>> I'm already very far on with this. I have csnd.jar and libcsound
>> compiled for android, but we ran into a snag where we had to get rid
>> of use of temporary files by csound when parsing orc/sco. John took
>> care of that (you could actually not even use orc/sco/csd files and
>> just pass in strings for those via API) by redoing some internals to
>> csound though the latest I tried with my compile still crashes out
>> somewhere. Otherwise, Victor has some custom OpenSL code and I wrote
>> a custom AndroidCsound class that subclasses Csound and handles
>> setting up pointers for audio callbacks. So we're working on it, but
>> it's crashing at the moment and I'm going to be off and on online this
>> week through Saturday (taking a small holiday with my wife). I'm
>> guess once we can get to rendering and procesing audio live, it'll
>> still take a little bit of time to make sure everything is working
>> correctly and to do documentation/examples before an official release.
>>
>> Thanks,
>> steven
>>
>>
>> On Sun, Nov 20, 2011 at 8:34 PM, Brian Redfern <brianwredfern@gmail.com> wrote:
>>> I'm trying to use the existing java code as my guide, for the csnd.jar
>>> wrapper. However that's not enough for an android port for realtime
>>> audio. If you are compiling to wav and then listening to the results
>>> you can get away with a csound port with no audio support, and the
>>> playback happens after compilation. That's one approach, but it
>>> doesn't take advantage of the power of my android tablet.
>>>
>>> Michael Goggins has a working approach, although I can't get the
>>> Silencio scripts to run on android yet.
>>>
>>> What would be necessary is to add support for Open SL ES realtime
>>> sound output from csound, so you have a port of csnd.jar for dalvik so
>>> java developers can then use csound as their backend synth engine and
>>> build front ends for it.
>>>
>>> People who only have an android 2.2 device likely don't have enough
>>> firepower to run csound in realtime on their device. But tons of
>>> android devices are fast enough to run it in realtime, at least a
>>> port of the OLPC version of csound with java/dalvik bindings rather
>>> than python bindings.
>>>
>>> That way you only need to support Open SL ES for realtime audio
>>> output, you don't have to send audio back through JNI as with 2.2 and
>>> below.
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
---------- Forwarded message ---------- From: luis jure <ljc@internet.com.uy> To: csound list <csound@lists.bath.ac.uk>
Date: Fri, 25 Nov 2011 14:08:35 -0200 Subject: Re: [Csnd] the challenge of porting to android
on 2011-11-25 at 15:15 Rory Walsh wrote:
>I'm more interested in the "DSP Ear Training" part of this mail. We
>discussed it briefly at the LAC. Do you plan to put any material/info
>online? I think it's a great idea.
+1
---------- Forwarded message ---------- From: Michele Nasti <michele.nasti@gmail.com> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 17:40:35 +0100 Subject: Re: [Csnd] best way to jump in a song Thanks ! If I don't ask I will never discover this opcodes. more difficoult question ... what if I want to change also the ending point?
I thought that I can delete the old function table and create a new one :
isize = (iend - istart)*sr ftfree gir;
gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
but this requires at least 1 second, and I need something faster and easier: the "iend" parameter is dynamic.
Ideas?
2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
But note that you probably don't want to define your table in the
"pass" section but either globally or earlier in the same instrument.
Otherwise the table will be recreated every time you jump, which is
unnecessary.
Best,
P
On 24 November 2011 19:25, peiman khosravi < peimankhosravi@gmail.com> wrote:
> OK then just re-initiate the instrument using something like this:
>
>
> ktrig changed koffset
> if ktrig = 1 then
> reinit pass
> endif
>
> pass:
>
> ioffset = i(koffset)
>
> ;your code here:
> ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>
>
> Best,
>
> Peiman
>
>
> On 24 November 2011 19:13, Michele Nasti < michele.nasti@gmail.com> wrote:
>> This is part of my code:
>>
>> <CsInstruments>
>>
>> gifil0 ftgen 0, 0, 0, 1,
>> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>>
>> ;general values for the pvstanal opcode
>>
>> giamp = 1 ;amplitude scaling
>>
>> gipitch = 1 ;pitch scaling
>>
>> gidet = 0 ;onset detection
>>
>> giwrap = 0 ;no loop reading
>>
>> giskip = 0 ;start at the beginning
>>
>> gifftsiz = 1024 ;fft size
>>
>> giovlp = gifftsiz/8 ;overlap size
>>
>> githresh = 0 ;threshold
>>
>> instr 1
>>
>> kvol0 = 1;
>>
>> kstretch = 1;
>>
>> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> gifftsiz, giovlp, githresh
>>
>> aout0 pvsynth fsig0
>>
>> outch 1, aout0*kvol0,
>>
>> endin
>>
>> </CsInstruments>
>>
>> <CsScore>
>>
>> i 1 0 3600
>>
>> </CsScore>
>>
>> 2011/11/24 Rory Walsh < rorywalsh@ear.ie>
>>>
>>> If you have a song in a function table you can jump to whatever point
>>> you like using a table opcode which allows direct indexing?
>>>
>>>
>>> On 24 November 2011 18:33, Michele Nasti < michele.nasti@gmail.com> wrote:
>>> > Hi there, I resolved my problems with the loop.
>>> > suppose I have a song loaded in a Functon Table.
>>> > Suppose that I want to dinamically change the start of the song in this
>>> > piece. My problem is, if I'm playing a song, I want to jump to a
>>> > specified
>>> > second of the song and play from there.
>>> > there should be a variable "gkCurrentPosition", and if I change it (via
>>> > chnget) , I should hear the change.
>>> > Suggestions? what is the best code?
>>> > Michele
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
---------- Forwarded message ---------- From: peiman khosravi <peimankhosravi@gmail.com> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 17:16:09 +0000 Subject: Re: [Csnd] best way to jump in a song On 25 November 2011 16:40, Michele Nasti <michele.nasti@gmail.com> wrote:
> Thanks ! If I don't ask I will never discover this opcodes.
That's what the list is for :-)
> more difficoult question ... what if I want to change also the ending
> point?
With pvstanal th eonly other option I can think of is having two
tables. reading the file in the new table and then changing the table
number dynamically. Still this will take time and won't be immediate.
Maybe Victor can add a loopend variable to the opcode?
P
> I thought that I can delete the old function table and create a new one :
> isize = (iend - istart)*sr
> ftfree gir;
> gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
> but this requires at least 1 second, and I need something faster and easier:
> the "iend" parameter is dynamic.
> Ideas?
> 2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
>>
>> But note that you probably don't want to define your table in the
>> "pass" section but either globally or earlier in the same instrument.
>> Otherwise the table will be recreated every time you jump, which is
>> unnecessary.
>>
>> Best,
>>
>> P
>>
>> On 24 November 2011 19:25, peiman khosravi <peimankhosravi@gmail.com>
>> wrote:
>> > OK then just re-initiate the instrument using something like this:
>> >
>> >
>> > ktrig changed koffset
>> > if ktrig = 1 then
>> > reinit pass
>> > endif
>> >
>> > pass:
>> >
>> > ioffset = i(koffset)
>> >
>> > ;your code here:
>> > ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>> >
>> >
>> > Best,
>> >
>> > Peiman
>> >
>> >
>> > On 24 November 2011 19:13, Michele Nasti <michele.nasti@gmail.com>
>> > wrote:
>> >> This is part of my code:
>> >>
>> >> <CsInstruments>
>> >>
>> >> gifil0 ftgen 0, 0, 0, 1,
>> >> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>> >>
>> >> ;general values for the pvstanal opcode
>> >>
>> >> giamp = 1 ;amplitude scaling
>> >>
>> >> gipitch = 1 ;pitch scaling
>> >>
>> >> gidet = 0 ;onset detection
>> >>
>> >> giwrap = 0 ;no loop reading
>> >>
>> >> giskip = 0 ;start at the beginning
>> >>
>> >> gifftsiz = 1024 ;fft size
>> >>
>> >> giovlp = gifftsiz/8 ;overlap size
>> >>
>> >> githresh = 0 ;threshold
>> >>
>> >> instr 1
>> >>
>> >> kvol0 = 1;
>> >>
>> >> kstretch = 1;
>> >>
>> >> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> >> gifftsiz, giovlp, githresh
>> >>
>> >> aout0 pvsynth fsig0
>> >>
>> >> outch 1, aout0*kvol0,
>> >>
>> >> endin
>> >>
>> >> </CsInstruments>
>> >>
>> >> <CsScore>
>> >>
>> >> i 1 0 3600
>> >>
>> >> </CsScore>
>> >>
>> >> 2011/11/24 Rory Walsh <rorywalsh@ear.ie>
>> >>>
>> >>> If you have a song in a function table you can jump to whatever point
>> >>> you like using a table opcode which allows direct indexing?
>> >>>
>> >>>
>> >>> On 24 November 2011 18:33, Michele Nasti <michele.nasti@gmail.com>
>> >>> wrote:
>> >>> > Hi there, I resolved my problems with the loop.
>> >>> > suppose I have a song loaded in a Functon Table.
>> >>> > Suppose that I want to dinamically change the start of the song in
>> >>> > this
>> >>> > piece. My problem is, if I'm playing a song, I want to jump to a
>> >>> > specified
>> >>> > second of the song and play from there.
>> >>> > there should be a variable "gkCurrentPosition", and if I change it
>> >>> > (via
>> >>> > chnget) , I should hear the change.
>> >>> > Suggestions? what is the best code?
>> >>> > Michele
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
---------- Forwarded message ---------- From: Michele Nasti <michele.nasti@gmail.com> To: csound@lists.bath.ac.uk
Date: Fri, 25 Nov 2011 20:06:15 +0100 Subject: Re: [Csnd] best way to jump in a song At the end I resolved in this way: when the loop is activated, I jump to instrument 2 that will use the mincer opcode (it can change start and stop dinamically) and I turn the instrument 1 down. If the loop is deactivated, I do the reverse: move from instrument 2 to instrument 1.
I don't think this is the best option, but until now this is the only solution I have. I will use this code for a software for blind people, so I'll make it clear that if they activate the loop they have to press play again.
If there is another solution please continue this thread! I'm learning a lot about csound from all of you. Michele 2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
On 25 November 2011 16:40, Michele Nasti < michele.nasti@gmail.com> wrote:
> Thanks ! If I don't ask I will never discover this opcodes.
That's what the list is for :-)
> more difficoult question ... what if I want to change also the ending
> point?
With pvstanal th eonly other option I can think of is having two
tables. reading the file in the new table and then changing the table
number dynamically. Still this will take time and won't be immediate.
Maybe Victor can add a loopend variable to the opcode?
P
> I thought that I can delete the old function table and create a new one :
> isize = (iend - istart)*sr
> ftfree gir;
> gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
> but this requires at least 1 second, and I need something faster and easier:
> the "iend" parameter is dynamic.
> Ideas?
> 2011/11/25 peiman khosravi < peimankhosravi@gmail.com>
>>
>> But note that you probably don't want to define your table in the
>> "pass" section but either globally or earlier in the same instrument.
>> Otherwise the table will be recreated every time you jump, which is
>> unnecessary.
>>
>> Best,
>>
>> P
>>
>> On 24 November 2011 19:25, peiman khosravi < peimankhosravi@gmail.com>
>> wrote:
>> > OK then just re-initiate the instrument using something like this:
>> >
>> >
>> > ktrig changed koffset
>> > if ktrig = 1 then
>> > reinit pass
>> > endif
>> >
>> > pass:
>> >
>> > ioffset = i(koffset)
>> >
>> > ;your code here:
>> > ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>> >
>> >
>> > Best,
>> >
>> > Peiman
>> >
>> >
>> > On 24 November 2011 19:13, Michele Nasti < michele.nasti@gmail.com>
>> > wrote:
>> >> This is part of my code:
>> >>
>> >> <CsInstruments>
>> >>
>> >> gifil0 ftgen 0, 0, 0, 1,
>> >> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>> >>
>> >> ;general values for the pvstanal opcode
>> >>
>> >> giamp = 1 ;amplitude scaling
>> >>
>> >> gipitch = 1 ;pitch scaling
>> >>
>> >> gidet = 0 ;onset detection
>> >>
>> >> giwrap = 0 ;no loop reading
>> >>
>> >> giskip = 0 ;start at the beginning
>> >>
>> >> gifftsiz = 1024 ;fft size
>> >>
>> >> giovlp = gifftsiz/8 ;overlap size
>> >>
>> >> githresh = 0 ;threshold
>> >>
>> >> instr 1
>> >>
>> >> kvol0 = 1;
>> >>
>> >> kstretch = 1;
>> >>
>> >> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> >> gifftsiz, giovlp, githresh
>> >>
>> >> aout0 pvsynth fsig0
>> >>
>> >> outch 1, aout0*kvol0,
>> >>
>> >> endin
>> >>
>> >> </CsInstruments>
>> >>
>> >> <CsScore>
>> >>
>> >> i 1 0 3600
>> >>
>> >> </CsScore>
>> >>
>> >> 2011/11/24 Rory Walsh < rorywalsh@ear.ie>
>> >>>
>> >>> If you have a song in a function table you can jump to whatever point
>> >>> you like using a table opcode which allows direct indexing?
>> >>>
>> >>>
>> >>> On 24 November 2011 18:33, Michele Nasti < michele.nasti@gmail.com>
>> >>> wrote:
>> >>> > Hi there, I resolved my problems with the loop.
>> >>> > suppose I have a song loaded in a Functon Table.
>> >>> > Suppose that I want to dinamically change the start of the song in
>> >>> > this
>> >>> > piece. My problem is, if I'm playing a song, I want to jump to a
>> >>> > specified
>> >>> > second of the song and play from there.
>> >>> > there should be a variable "gkCurrentPosition", and if I change it
>> >>> > (via
>> >>> > chnget) , I should hear the change.
>> >>> > Suggestions? what is the best code?
>> >>> > Michele
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
End of digest for list csound - Sat, 26 Nov 2011
|