Csound Csound-dev Csound-tekno Search About

real time file player

Date2016-03-07 11:49
FromFederico
Subjectreal time file player
Hello,
I'm searching some examples to create a drag and drop audio file player
(i.e. similar to the ableton sampler). I found the fog file player in
cabbage's examples, which basically is what I need, but the problem is that
being a newbie I can't really get how the connection between the loaded file
and the caller instrument works! Is there anything easier to understand?
Then another question that I have is if I'm using the pvsfreeze in real
time, controlling the frequency freeze with the midi keyboard, and the
amplitudes freeze with a button, is that possible that this create some
malfunction on the mxadsr? Sometimes it doesn't respond at all! I guess it
is something that has to do with the time that the pvsfreeze opcode needs to
work.
As a last thing I'd like to know if there any possibility to smooth the
action of the button with an envelope because it's action is too sudden.
Thanks in advance, and sorry if I didn't respect any of the guidelines for
posting here, it's the first time that I'm writing here!
That's the image of the instrument, in case I wasn't clear. 
 



--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-file-player-tp5747698.html
Sent from the Csound - General mailing list archive at Nabble.com.

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

Date2016-03-07 13:24
FromRory Walsh
SubjectRe: real time file player
Welcome to the Csound list! No one minds discussing questions about frontends here, but it might be a good idea to ask on the Cabbage forum. I did post a simple file player example to the Cabbage forum some months ago that might be a good place to start.

On 7 March 2016 at 11:49, Federico <federicorusso.art@gmail.com> wrote:
Hello,
I'm searching some examples to create a drag and drop audio file player
(i.e. similar to the ableton sampler). I found the fog file player in
cabbage's examples, which basically is what I need, but the problem is that
being a newbie I can't really get how the connection between the loaded file
and the caller instrument works! Is there anything easier to understand?
Then another question that I have is if I'm using the pvsfreeze in real
time, controlling the frequency freeze with the midi keyboard, and the
amplitudes freeze with a button, is that possible that this create some
malfunction on the mxadsr? Sometimes it doesn't respond at all! I guess it
is something that has to do with the time that the pvsfreeze opcode needs to
work.
As a last thing I'd like to know if there any possibility to smooth the
action of the button with an envelope because it's action is too sudden.
Thanks in advance, and sorry if I didn't respect any of the guidelines for
posting here, it's the first time that I'm writing here!
That's the image of the instrument, in case I wasn't clear.
<http://csound.1045644.n5.nabble.com/file/n5747698/Screen_Shot_2016-03-07_at_11.png>



--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-file-player-tp5747698.html
Sent from the Csound - General mailing list archive at Nabble.com.

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

Date2016-03-07 13:25
FromIain McCurdy
SubjectRe: real time file player
In Cabbage it is simply the filebutton widget that opens a file through a browser window and then passes the file path as a string to an instrument using a named channel. This string can then be used in a soundin, diskin, flooper etc. to establish a file player.
With regard to pvsfreeze: without more information, I can only guess that you are freezing amplitudes of zero.
You can smooth the 0 - 1 changes of a button with 'port'. If you still get zipper noise artifacts you can interpolate it to a-rate.
Hope this helps.
Bye,
Iain 

> Date: Mon, 7 Mar 2016 04:49:52 -0700
> From: federicorusso.art@GMAIL.COM
> Subject: [Csnd] real time file player
> To: CSOUND@LISTSERV.HEANET.IE
>
> Hello,
> I'm searching some examples to create a drag and drop audio file player
> (i.e. similar to the ableton sampler). I found the fog file player in
> cabbage's examples, which basically is what I need, but the problem is that
> being a newbie I can't really get how the connection between the loaded file
> and the caller instrument works! Is there anything easier to understand?
> Then another question that I have is if I'm using the pvsfreeze in real
> time, controlling the frequency freeze with the midi keyboard, and the
> amplitudes freeze with a button, is that possible that this create some
> malfunction on the mxadsr? Sometimes it doesn't respond at all! I guess it
> is something that has to do with the time that the pvsfreeze opcode needs to
> work.
> As a last thing I'd like to know if there any possibility to smooth the
> action of the button with an envelope because it's action is too sudden.
> Thanks in advance, and sorry if I didn't respect any of the guidelines for
> posting here, it's the first time that I'm writing here!
> That's the image of the instrument, in case I wasn't clear.
> <http://csound.1045644.n5.nabble.com/file/n5747698/Screen_Shot_2016-03-07_at_11.png>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/real-time-file-player-tp5747698.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> 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

Date2016-03-07 13:40
FromFederico
SubjectRe: real time file player
Yes thanks a lot, that was precisely what I was looking for!



--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-file-player-tp5747698p5747706.html
Sent from the Csound - General mailing list archive at Nabble.com.

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

Date2016-03-07 13:53
FromFederico
SubjectRe: real time file player
Ok great, thanks. 
Regarding the pvsfreeze I'm freezing the amplitudes of 1, and I have no
problem with that, the thing I can't understand is the frequency freezing,
which I can't see why it interferes with the envelope. 
In the picture the line of the pvsfreeze is 137: as you can see, I'm simply
activating that switching between 0 and 1, where the 1 is sent when any key
is pressed. The problem that I get is that sometimes I have to press the key
more than once, because it seems like the mxadsr doesn't start, and I can't
find where the issue could be!
Anyway thanks again for the other answers they where really useful.



--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-file-player-tp5747698p5747707.html
Sent from the Csound - General mailing list archive at Nabble.com.

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