Csound Csound-dev Csound-tekno Search About

[Csnd] Midi file option with API not working?

Date2014-04-24 20:41
Fromzappfinger
Subject[Csnd] Midi file option with API not working?
I tried to start a midi file with -F via the API.

csound.SetOption("-F bwv582.mid")

Although the file is in the same directory, it is not found.

Starting a similar csd in this directory via command line does work 

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-04-24 20:50
FromVictor Lazzarini
SubjectRe: [Csnd] Midi file option with API not working?
You can’t have spaces in SetOption(). Try -Fbwv582.mid.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 24 Apr 2014, at 20:41, zappfinger  wrote:

> I tried to start a midi file with -F via the API.
> 
> csound.SetOption("-F bwv582.mid")
> 
> Although the file is in the same directory, it is not found.
> 
> Starting a similar csd in this directory via command line does work 
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> 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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-04-24 20:54
Fromzappfinger
Subject[Csnd] Re: Midi file option with API not working?
Ah, that seems to do it!
Thanks



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648p5734651.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-04-24 21:27
FromAndres Cabrera
SubjectRe: [Csnd] Re: Midi file option with API not working?
I was about to say it would be good to document it, but it's already there...

http://csound.github.io/docs/api/group__ATTRIBUTES.html#gab26e9ced6737430cb5ed503e57cff63e

Cheers,
Andrés


On Thu, Apr 24, 2014 at 12:54 PM, zappfinger <zappfinger@gmail.com> wrote:
Ah, that seems to do it!
Thanks



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648p5734651.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-04-24 21:41
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Midi file option with API not working?
a-ha!
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 24 Apr 2014, at 21:27, Andres Cabrera  wrote:

> I was about to say it would be good to document it, but it's already there...
> 
> http://csound.github.io/docs/api/group__ATTRIBUTES.html#gab26e9ced6737430cb5ed503e57cff63e
> 
> Cheers,
> Andrés
> 
> 
> On Thu, Apr 24, 2014 at 12:54 PM, zappfinger  wrote:
> Ah, that seems to do it!
> Thanks
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648p5734651.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to
>         https://github.com/csound/csound/issues
> 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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-04-25 12:22
FromDavid Worrall
SubjectRe: [Csnd] Midi file option with API not working?
That sort of parsing problem sees so obscure. 
Especially as "-o sac" and "-odac" (for example) work equally as well.

Isn't there a way to make this type of thing more user friendly - or at least consistent?

D.

s
On 24.04.2014, at 21:50, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

You can’t have spaces in SetOption(). Try -Fbwv582.mid.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 24 Apr 2014, at 20:41, zappfinger <zappfinger@gmail.com> wrote:

I tried to start a midi file with -F via the API.

csound.SetOption("-F bwv582.mid")

Although the file is in the same directory, it is not found.

Starting a similar csd in this directory via command line does work

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-file-option-with-API-not-working-tp5734648.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
      https://github.com/csound/csound/issues
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
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University