Csound Csound-dev Csound-tekno Search About

[Cs-dev] opcode to start/stop/rewind jack transport

Date2008-01-31 10:22
FromCesare Marilungo
Subject[Cs-dev] opcode to start/stop/rewind jack transport
Recently I've made this opcode to start/stop/rewind jack transport:

http://www.cesaremarilungo.com/download/csound/jackTransportOpcode.tar.gz

It's ten lines of code but it could be useful for linux users that need 
to start another jack client application in sync with csound in realtime.

jack_transport 0 ; start

jack_transport 1 ; stop

jack_transport 2; rewind to frame 0.

Do you think we can include it 5.08?

Best,

-c.

p.s. I had to copy the structs from Istvan Varga's code. It would be 
good to split rtjack.c and make a header file, too so that other opcodes 
can just include it.

-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-01-31 10:45
FromDave Phillips
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Cesare Marilungo wrote:
> Recently I've made this opcode to start/stop/rewind jack transport:
>
> http://www.cesaremarilungo.com/download/csound/jackTransportOpcode.tar.gz
>
> It's ten lines of code but it could be useful for linux users that need 
> to start another jack client application in sync with csound in realtime.
>
> jack_transport 0 ; start
>
> jack_transport 1 ; stop
>
> jack_transport 2; rewind to frame 0.
>
> Do you think we can include it 5.08?
>
> Best,
>
> -c.
>
> p.s. I had to copy the structs from Istvan Varga's code. It would be 
> good to split rtjack.c and make a header file, too so that other opcodes 
> can just include it.
>   
Very exciting, Cesare !

Please, add it if it's viable, it would be a most welcome addition.

Best,

dp


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-01-31 13:21
FromVictor Lazzarini
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
I am sure we can. If no one beats me to it, I'll try doing on Monday.

Thanks

Victor

Ps.: have you considered becoming a Csound5 developer? You can
ask John ffitch, if you are interested. Then you'd just commit code
yourself.

At 10:22 31/01/2008, you wrote:
>Recently I've made this opcode to start/stop/rewind jack transport:
>
>http://www.cesaremarilungo.com/download/csound/jackTransportOpcode.tar.gz
>
>It's ten lines of code but it could be useful for linux users that need
>to start another jack client application in sync with csound in realtime.
>
>jack_transport 0 ; start
>
>jack_transport 1 ; stop
>
>jack_transport 2; rewind to frame 0.
>
>Do you think we can include it 5.08?
>
>Best,
>
>-c.
>
>p.s. I had to copy the structs from Istvan Varga's code. It would be
>good to split rtjack.c and make a header file, too so that other opcodes
>can just include it.
>
>--
>www.cesaremarilungo.com
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-01-31 13:44
Fromjpff
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
jackTransport is there now.
Will tidy up headers etc soon
==John ffitch

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-01-31 14:40
FromAndres Cabrera
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Cesare,

Thanks for the opcodes. Did you write a manual page. If not or if you
don't have time, send the text information and I'll add the pages.

This final opcode sprint will give a lot of value to the release =)

Cheers,
Andrés

El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
> jackTransport is there now.
> Will tidy up headers etc soon
> ==John ffitch
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.source

Date2008-01-31 15:06
FromCesare Marilungo
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
As I said, it's just ten lines of code at most. Nonetheless it's handy. 
This proves the flexibility of csound5 architecture.

I can prepare the xml for the page and send it to you. Just tell me 
which opcode page I should use as a template. In particular, I need to 
know how it will be cataloged, considering that it is specific for jack.

Best,

-c.

Andres Cabrera wrote:
> Cesare,
>
> Thanks for the opcodes. Did you write a manual page. If not or if you
> don't have time, send the text information and I'll add the pages.
>
> This final opcode sprint will give a lot of value to the release =)
>
> Cheers,
> Andrés
>
> El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
>   
>> jackTransport is there now.
>> Will tidy up headers etc soon
>> ==John ffitch
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>     
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>   


-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https

Date2008-01-31 21:56
FromCesare Marilungo
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
I'm going to rename it from jack_transport to jacktransport (without the 
underscore) since it seems the vast majority of the opcodes are written 
this way.

Any comment on the parameter order (0 - play, 1 - stop, 2 - rewind)?

Cheers,

-c.

Cesare Marilungo wrote:
> As I said, it's just ten lines of code at most. Nonetheless it's handy. 
> This proves the flexibility of csound5 architecture.
>
> I can prepare the xml for the page and send it to you. Just tell me 
> which opcode page I should use as a template. In particular, I need to 
> know how it will be cataloged, considering that it is specific for jack.
>
> Best,
>
> -c.
>
> Andres Cabrera wrote:
>   
>> Cesare,
>>
>> Thanks for the opcodes. Did you write a manual page. If not or if you
>> don't have time, send the text information and I'll add the pages.
>>
>> This final opcode sprint will give a lot of value to the release =)
>>
>> Cheers,
>> Andrés
>>
>> El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
>>   
>>     
>>> jackTransport is there now.
>>> Will tidy up headers etc soon
>>> ==John ffitch
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>     
>>>       
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>   
>>     
>
>
>   


-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cs

Date2008-01-31 22:26
FromAndres Cabrera
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Maybe 0 for stop and 1 for play?

Cheers,
Andrés

El jue, 31-01-2008 a las 22:56 +0100, Cesare Marilungo escribió:
> I'm going to rename it from jack_transport to jacktransport (without the 
> underscore) since it seems the vast majority of the opcodes are written 
> this way.
> 
> Any comment on the parameter order (0 - play, 1 - stop, 2 - rewind)?
> 
> Cheers,
> 
> -c.
> 
> Cesare Marilungo wrote:
> > As I said, it's just ten lines of code at most. Nonetheless it's handy. 
> > This proves the flexibility of csound5 architecture.
> >
> > I can prepare the xml for the page and send it to you. Just tell me 
> > which opcode page I should use as a template. In particular, I need to 
> > know how it will be cataloged, considering that it is specific for jack.
> >
> > Best,
> >
> > -c.
> >
> > Andres Cabrera wrote:
> >   
> >> Cesare,
> >>
> >> Thanks for the opcodes. Did you write a manual page. If not or if you
> >> don't have time, send the text information and I'll add the pages.
> >>
> >> This final opcode sprint will give a lot of value to the release =)
> >>
> >> Cheers,
> >> Andrés
> >>
> >> El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
> >>   
> >>     
> >>> jackTransport is there now.
> >>> Will tidy up headers etc soon
> >>> ==John ffitch
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.net email is sponsored by: Microsoft
> >>> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >>> _______________________________________________
> >>> Csound-devel mailing list
> >>> Csound-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>     
> >>>       
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>   
> >>     
> >
> >
> >   
> 
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-dev

Date2008-01-31 23:25
FromJonatan Liljedahl
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
I think so too, it would be more natural.

Andres Cabrera wrote:
> Maybe 0 for stop and 1 for play?
> 
> Cheers,
> Andrés
> 
> El jue, 31-01-2008 a las 22:56 +0100, Cesare Marilungo escribió:
>> I'm going to rename it from jack_transport to jacktransport (without the 
>> underscore) since it seems the vast majority of the opcodes are written 
>> this way.
>>
>> Any comment on the parameter order (0 - play, 1 - stop, 2 - rewind)?
>>
>> Cheers,
>>
>> -c.
>>
>> Cesare Marilungo wrote:
>>> As I said, it's just ten lines of code at most. Nonetheless it's handy. 
>>> This proves the flexibility of csound5 architecture.
>>>
>>> I can prepare the xml for the page and send it to you. Just tell me 
>>> which opcode page I should use as a template. In particular, I need to 
>>> know how it will be cataloged, considering that it is specific for jack.
>>>
>>> Best,
>>>
>>> -c.
>>>
>>> Andres Cabrera wrote:
>>>   
>>>> Cesare,
>>>>
>>>> Thanks for the opcodes. Did you write a manual page. If not or if you
>>>> don't have time, send the text information and I'll add the pages.
>>>>
>>>> This final opcode sprint will give a lot of value to the release =)
>>>>
>>>> Cheers,
>>>> Andrés


-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.source

Date2008-02-01 02:03
FromCesare Marilungo
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
What if we make 3 separate opcodes:

jacktransportstart
jacktransportstop
jacktransportlocate iseconds

so that one can also position the transport to a specific number of 
seconds before starting playing?

Or we can add a second optional parameter to tell where the transport 
should be positioned before start playing? So:

jacktransport 1, 0 ; would rewind and play
jacktransport 1, 10 ; would set the transport position to 10 seconds and 
then start playing
jacktransport 1 ; would play from current position
jacktransport 0 ; would stop

-c.

Andres Cabrera wrote:
> Maybe 0 for stop and 1 for play?
>
> Cheers,
> Andrés
>
> El jue, 31-01-2008 a las 22:56 +0100, Cesare Marilungo escribió:
>   
>> I'm going to rename it from jack_transport to jacktransport (without the 
>> underscore) since it seems the vast majority of the opcodes are written 
>> this way.
>>
>> Any comment on the parameter order (0 - play, 1 - stop, 2 - rewind)?
>>
>> Cheers,
>>
>> -c.
>>
>> Cesare Marilungo wrote:
>>     
>>> As I said, it's just ten lines of code at most. Nonetheless it's handy. 
>>> This proves the flexibility of csound5 architecture.
>>>
>>> I can prepare the xml for the page and send it to you. Just tell me 
>>> which opcode page I should use as a template. In particular, I need to 
>>> know how it will be cataloged, considering that it is specific for jack.
>>>
>>> Best,
>>>
>>> -c.
>>>
>>> Andres Cabrera wrote:
>>>   
>>>       
>>>> Cesare,
>>>>
>>>> Thanks for the opcodes. Did you write a manual page. If not or if you
>>>> don't have time, send the text information and I'll add the pages.
>>>>
>>>> This final opcode sprint will give a lot of value to the release =)
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>> El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
>>>>   
>>>>     
>>>>         
>>>>> jackTransport is there now.
>>>>> Will tidy up headers etc soon
>>>>> ==John ffitch
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> This SF.net email is sponsored by: Microsoft
>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>     
>>>>>       
>>>>>           
>>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by: Microsoft
>>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>   
>>>>     
>>>>         
>>>   
>>>       
>>     
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>   


-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge

Date2008-02-01 10:19
FromRory Walsh
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
I think it would be better to add optional parameters.

Rory.


Cesare Marilungo wrote:
> What if we make 3 separate opcodes:
> 
> jacktransportstart
> jacktransportstop
> jacktransportlocate iseconds
> 
> so that one can also position the transport to a specific number of 
> seconds before starting playing?
> 
> Or we can add a second optional parameter to tell where the transport 
> should be positioned before start playing? So:
> 
> jacktransport 1, 0 ; would rewind and play
> jacktransport 1, 10 ; would set the transport position to 10 seconds and 
> then start playing
> jacktransport 1 ; would play from current position
> jacktransport 0 ; would stop
> 
> -c.
> 
> Andres Cabrera wrote:
>> Maybe 0 for stop and 1 for play?
>>
>> Cheers,
>> Andrés
>>
>> El jue, 31-01-2008 a las 22:56 +0100, Cesare Marilungo escribió:
>>   
>>> I'm going to rename it from jack_transport to jacktransport (without the 
>>> underscore) since it seems the vast majority of the opcodes are written 
>>> this way.
>>>
>>> Any comment on the parameter order (0 - play, 1 - stop, 2 - rewind)?
>>>
>>> Cheers,
>>>
>>> -c.
>>>
>>> Cesare Marilungo wrote:
>>>     
>>>> As I said, it's just ten lines of code at most. Nonetheless it's handy. 
>>>> This proves the flexibility of csound5 architecture.
>>>>
>>>> I can prepare the xml for the page and send it to you. Just tell me 
>>>> which opcode page I should use as a template. In particular, I need to 
>>>> know how it will be cataloged, considering that it is specific for jack.
>>>>
>>>> Best,
>>>>
>>>> -c.
>>>>
>>>> Andres Cabrera wrote:
>>>>   
>>>>       
>>>>> Cesare,
>>>>>
>>>>> Thanks for the opcodes. Did you write a manual page. If not or if you
>>>>> don't have time, send the text information and I'll add the pages.
>>>>>
>>>>> This final opcode sprint will give a lot of value to the release =)
>>>>>
>>>>> Cheers,
>>>>> Andrés
>>>>>
>>>>> El jue, 31-01-2008 a las 13:44 +0000, jpff escribió:
>>>>>   
>>>>>     
>>>>>         
>>>>>> jackTransport is there now.
>>>>>> Will tidy up headers etc soon
>>>>>> ==John ffitch
>>>>>>
>>>>>> -------------------------------------------------------------------------
>>>>>> This SF.net email is sponsored by: Microsoft
>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>     
>>>>>>       
>>>>>>           
>>>>> -------------------------------------------------------------------------
>>>>> This SF.net email is sponsored by: Microsoft
>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>   
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>     
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>   
> 
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://

Date2008-02-01 10:31
FromJonatan Liljedahl
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Cesare Marilungo wrote:
...
> Or we can add a second optional parameter to tell where the transport 
> should be positioned before start playing? So:
> 
> jacktransport 1, 0 ; would rewind and play
> jacktransport 1, 10 ; would set the transport position to 10 seconds and 
> then start playing
> jacktransport 1 ; would play from current position
> jacktransport 0 ; would stop

this looks very good, imho.

-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-01 13:11
FromCesare Marilungo
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Ok, I recommitted the jacktransport opcode with this new syntax. Below 
there's an example. Please test!

BTW, is csound->GetSr(csound); the correct way to get the sampling rate?

Cheers,

-c.

orch:

    instr 1
jacktransport p4, p5
    endin

    instr 2
jacktransport p4
    endin

score:

i2 0 5 1; play
i2 5 1 0; stop
i1 6 5 1 2 ; move at 2 seconds and start playing back
i1 11 1 0 0 ; stop and rewind


Jonatan Liljedahl wrote:
> Cesare Marilungo wrote:
> ...
>   
>> Or we can add a second optional parameter to tell where the transport 
>> should be positioned before start playing? So:
>>
>> jacktransport 1, 0 ; would rewind and play
>> jacktransport 1, 10 ; would set the transport position to 10 seconds and 
>> then start playing
>> jacktransport 1 ; would play from current position
>> jacktransport 0 ; would stop
>>     
>
> this looks very good, imho.
>
>   


-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-01 14:15
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
AttachmentsNone  None  None  None  

Date2008-02-01 14:19
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
AttachmentsNone  None  None  None  

Date2008-02-01 14:56
FromCesare Marilungo
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Ah ok, thanks. I thought it was already there. I haven't touched the 
SConscript script at all yet.

-c.

Victor.Lazzarini@nuim.ie wrote:
> also, when committing code that has external dependencies,
> see if you can add a check for them in SConstruct, if it's
> already there, just add a conditional, eg.:
>
> if jackFound:
>   ...
>
> That'll allow the build to go ahead on other platforms (eg. Windows)
> etc.
>
> Victor
> ----- Original Message -----
> From: Cesare Marilungo 
> Date: Friday, February 1, 2008 1:12 pm
> Subject: Re: [Cs-dev] opcode to start/stop/rewind jack transport
> To: Developer discussions 
>
> > Ok, I recommitted the jacktransport opcode with this new syntax.
> > Below
> > there's an example. Please test!
> >
> > BTW, is csound->GetSr(csound); the correct way to get the
> > sampling rate?
> >
> > Cheers,
> >
> > -c.
> >
> > orch:
> >
> >     instr 1
> > jacktransport p4, p5
> >     endin
> >
> >     instr 2
> > jacktransport p4
> >     endin
> >
> > score:
> >
> > i2 0 5 1; play
> > i2 5 1 0; stop
> > i1 6 5 1 2 ; move at 2 seconds and start playing back
> > i1 11 1 0 0 ; stop and rewind
> >
> >
> > Jonatan Liljedahl wrote:
> > > Cesare Marilungo wrote:
> > > ...
> > >  
> > >> Or we can add a second optional parameter to tell where the
> > transport
> > >> should be positioned before start playing? So:
> > >>
> > >> jacktransport 1, 0 ; would rewind and play
> > >> jacktransport 1, 10 ; would set the transport position to 10
> > seconds and
> > >> then start playing
> > >> jacktransport 1 ; would play from current position
> > >> jacktransport 0 ; would stop
> > >>    
> > >
> > > this looks very good, imho.
> > >
> > >  
> >
> >
> > --
> > www.cesaremarilungo.com
> >
> >
> > -----------------------------------------------------------------
> > --------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>   


-- 
www.cesaremarilungo.com 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-01 20:37
FromAndres Cabrera
SubjectRe: [Cs-dev] opcode to start/stop/rewind jack transport
Hi,

I think the same check for the jack plugin should be used, to avoid a
separate check.

Cheers,
Andrés

El vie, 01-02-2008 a las 15:56 +0100, Cesare Marilungo escribió:
> Ah ok, thanks. I thought it was already there. I haven't touched the 
> SConscript script at all yet.
> 
> -c.
> 
> Victor.Lazzarini@nuim.ie wrote:
> > also, when committing code that has external dependencies,
> > see if you can add a check for them in SConstruct, if it's
> > already there, just add a conditional, eg.:
> >
> > if jackFound:
> >   ...
> >
> > That'll allow the build to go ahead on other platforms (eg. Windows)
> > etc.
> >
> > Victor
> > ----- Original Message -----
> > From: Cesare Marilungo 
> > Date: Friday, February 1, 2008 1:12 pm
> > Subject: Re: [Cs-dev] opcode to start/stop/rewind jack transport
> > To: Developer discussions 
> >
> > > Ok, I recommitted the jacktransport opcode with this new syntax.
> > > Below
> > > there's an example. Please test!
> > >
> > > BTW, is csound->GetSr(csound); the correct way to get the
> > > sampling rate?
> > >
> > > Cheers,
> > >
> > > -c.
> > >
> > > orch:
> > >
> > >     instr 1
> > > jacktransport p4, p5
> > >     endin
> > >
> > >     instr 2
> > > jacktransport p4
> > >     endin
> > >
> > > score:
> > >
> > > i2 0 5 1; play
> > > i2 5 1 0; stop
> > > i1 6 5 1 2 ; move at 2 seconds and start playing back
> > > i1 11 1 0 0 ; stop and rewind
> > >
> > >
> > > Jonatan Liljedahl wrote:
> > > > Cesare Marilungo wrote:
> > > > ...
> > > >  
> > > >> Or we can add a second optional parameter to tell where the
> > > transport
> > > >> should be positioned before start playing? So:
> > > >>
> > > >> jacktransport 1, 0 ; would rewind and play
> > > >> jacktransport 1, 10 ; would set the transport position to 10
> > > seconds and
> > > >> then start playing
> > > >> jacktransport 1 ; would play from current position
> > > >> jacktransport 0 ; would stop
> > > >>    
> > > >
> > > > this looks very good, imho.
> > > >
> > > >  
> > >
> > >
> > > --
> > > www.cesaremarilungo.com
> > >
> > >
> > > -----------------------------------------------------------------
> > > --------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >   
> 
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.n