Csound Csound-dev Csound-tekno Search About

[Csnd] Mp3 ideas

Date2011-10-16 01:08
FromMichele Nasti
Subject[Csnd] Mp3 ideas
Hello everybody, 
I've read somewhere in the docs that CSound doesn't suppport Mp3, and this is just right because of patent issues. However I need to distribute compressed audio files, and I can't forget that mp3 is the market standard nowdays. I have two options: 
  1. convert mp3 to wav on the fly in java and send it to the program 
  2. find an alternative to use mp3 in CSound (for example, loading the mp3 to a function table) but i don't know if a solution exists. 
Is there anybody that can take me to some documentation, some plugins for CSound or anything else that you've tried and you know that works? 
Thank you all. 


Date2011-10-16 01:25
FromSteven Yi
SubjectRe: [Csnd] Mp3 ideas
Hi Michele,

There's the mp3in opcode:

http://csounds.com/manual/html/mp3in.html

I'm not sure if that's distributed by everyone though.  One thing you
could do though is use ogg, and I think everyone is distributing with
libsndfile compiled to read ogg files, meaning you could open an ogg
file wherever you would read in a wav or aiff file in Csound. (At
least, that's my understanding, but I haven't tried myself.)

steven

On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti  wrote:
> Hello everybody,
> I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
> is just right because of patent issues. However I need to distribute
> compressed audio files, and I can't forget that mp3 is the market standard
> nowdays. I have two options:
>
> convert mp3 to wav on the fly in java and send it to the program
> find an alternative to use mp3 in CSound (for example, loading the mp3 to a
> function table) but i don't know if a solution exists.
>
> Is there anybody that can take me to some documentation, some plugins for
> CSound or anything else that you've tried and you know that works?
> Thank you all.
>


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"

Date2011-10-16 01:57
Frommatt ingalls
SubjectRe: [Csnd] Mp3 ideas
also, if you are on a mac, you can try my  "soundinmac"  opcode
(if i knew how to add this to canonical, i would!)

http://sonomatics.com/soundinmac.zip

( in addition to supporting all files types supported by MacOS, pitch shifting less aliasing than diskin2's sinc mode )


On Oct 15, 2011, at 5:25 PM, Steven Yi wrote:

> Hi Michele,
> 
> There's the mp3in opcode:
> 
> http://csounds.com/manual/html/mp3in.html
> 
> I'm not sure if that's distributed by everyone though.  One thing you
> could do though is use ogg, and I think everyone is distributing with
> libsndfile compiled to read ogg files, meaning you could open an ogg
> file wherever you would read in a wav or aiff file in Csound. (At
> least, that's my understanding, but I haven't tried myself.)
> 
> steven
> 
> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti  wrote:
>> Hello everybody,
>> I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
>> is just right because of patent issues. However I need to distribute
>> compressed audio files, and I can't forget that mp3 is the market standard
>> nowdays. I have two options:
>> 
>> convert mp3 to wav on the fly in java and send it to the program
>> find an alternative to use mp3 in CSound (for example, loading the mp3 to a
>> function table) but i don't know if a solution exists.
>> 
>> Is there anybody that can take me to some documentation, some plugins for
>> CSound or anything else that you've tried and you know that works?
>> Thank you all.
>> 
> 
> 
> 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"


Date2011-10-16 02:06
FromRory Walsh
SubjectRe: [Csnd] Mp3 ideas
Ogg is the bomb.

On 16 October 2011 01:25, Steven Yi  wrote:
> Hi Michele,
>
> There's the mp3in opcode:
>
> http://csounds.com/manual/html/mp3in.html
>
> I'm not sure if that's distributed by everyone though.  One thing you
> could do though is use ogg, and I think everyone is distributing with
> libsndfile compiled to read ogg files, meaning you could open an ogg
> file wherever you would read in a wav or aiff file in Csound. (At
> least, that's my understanding, but I haven't tried myself.)
>
> steven
>
> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti  wrote:
>> Hello everybody,
>> I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
>> is just right because of patent issues. However I need to distribute
>> compressed audio files, and I can't forget that mp3 is the market standard
>> nowdays. I have two options:
>>
>> convert mp3 to wav on the fly in java and send it to the program
>> find an alternative to use mp3 in CSound (for example, loading the mp3 to a
>> function table) but i don't know if a solution exists.
>>
>> Is there anybody that can take me to some documentation, some plugins for
>> CSound or anything else that you've tried and you know that works?
>> Thank you all.
>>
>
>
> 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"


Date2011-10-16 10:40
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Mp3 ideas
mp3in reads mp3 files using a Russian-written library mpadec

  ar1, ar2 mp3in ifilcod [, iskptim, iformat, iskipinit, ibufsize]

In the manual, written 2009, New in version 5.11


> Hello everybody,
> I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
> is just *right* because of patent issues. However I need to distribute
> compressed audio files, and I can't forget that mp3 is the market standard
> nowdays. I have two options:
>
>    1. convert mp3 to wav on the fly in java and send it to the program
>    2. find an alternative to use mp3 in CSound (for example, loading the
> mp3
>    to a function table) *but i don't know if a solution exists. *
>
> Is there anybody that can take me to some documentation, some plugins for
> CSound or anything else that you've tried and you know that works?
> Thank you all.
>
> 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"

Date2011-10-16 10:51
FromEnrico Francioni
Subject[Csnd] Re: Mp3 ideas
Hi,

I do not know if it exists, and I do not know if I say nonsense,
but it would be nice to have a type of opcode "mp3out" ...
or, for Mac, a "soundoutmac" (!?!?!?), ...
to write compressed output file format (including mp3 ... etc) ...

Is not it?

enrico





Steven Yi wrote:
> 
> Hi Michele,
> 
> There's the mp3in opcode:
> 
> http://csounds.com/manual/html/mp3in.html
> 
> I'm not sure if that's distributed by everyone though.  One thing you
> could do though is use ogg, and I think everyone is distributing with
> libsndfile compiled to read ogg files, meaning you could open an ogg
> file wherever you would read in a wav or aiff file in Csound. (At
> least, that's my understanding, but I haven't tried myself.)
> 
> steven
> 
> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti <michele.nasti@>
> wrote:
>> Hello everybody,
>> I've read somewhere in the docs that CSound doesn't suppport Mp3, and
>> this
>> is just right because of patent issues. However I need to distribute
>> compressed audio files, and I can't forget that mp3 is the market
>> standard
>> nowdays. I have two options:
>>
>> convert mp3 to wav on the fly in java and send it to the program
>> find an alternative to use mp3 in CSound (for example, loading the mp3 to
>> a
>> function table) but i don't know if a solution exists.
>>
>> Is there anybody that can take me to some documentation, some plugins for
>> CSound or anything else that you've tried and you know that works?
>> Thank you all.
>>
> 
> 
> 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@.ac with body "unsubscribe csound"
> 


--
View this message in context: http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4906704.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"

Date2011-10-16 10:54
FromRick
SubjectRe: [Csnd] Mp3 ideas
the new HTML5 browsers are handling ogg files without plug-ins, as
plug-ins are becoming considered insecure elements. Standards may be
changing for web playback.

On Sun, Oct 16, 2011 at 10:40 AM,   wrote:
> mp3in reads mp3 files using a Russian-written library mpadec
>
>  ar1, ar2 mp3in ifilcod [, iskptim, iformat, iskipinit, ibufsize]
>
> In the manual, written 2009, New in version 5.11
>
>
>> Hello everybody,
>> I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
>> is just *right* because of patent issues. However I need to distribute
>> compressed audio files, and I can't forget that mp3 is the market standard
>> nowdays. I have two options:
>>
>>    1. convert mp3 to wav on the fly in java and send it to the program
>>    2. find an alternative to use mp3 in CSound (for example, loading the
>> mp3
>>    to a function table) *but i don't know if a solution exists. *
>>
>> Is there anybody that can take me to some documentation, some plugins for
>> CSound or anything else that you've tried and you know that works?
>> Thank you all.
>>
>> 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"
>
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Richard Nance
www.PlasticMusic.Net


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"


Date2011-10-16 10:56
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Mp3 ideas
Can't have mp3out because otherwise we would be liable to pay  
Frauenhoffer Institute for a licence. This kind of thing (also about  
VST) should be in a FAQ somewhere, because we keep coming back to the  
same discussion every now and then.

Victor
On 16 Oct 2011, at 10:51, Enrico Francioni wrote:

>
> Hi,
>
> I do not know if it exists, and I do not know if I say nonsense,
> but it would be nice to have a type of opcode "mp3out" ...
> or, for Mac, a "soundoutmac" (!?!?!?), ...
> to write compressed output file format (including mp3 ... etc) ...
>
> Is not it?
>
> enrico
>
>
>
>
>
> Steven Yi wrote:
>>
>> Hi Michele,
>>
>> There's the mp3in opcode:
>>
>> http://csounds.com/manual/html/mp3in.html
>>
>> I'm not sure if that's distributed by everyone though.  One thing you
>> could do though is use ogg, and I think everyone is distributing with
>> libsndfile compiled to read ogg files, meaning you could open an ogg
>> file wherever you would read in a wav or aiff file in Csound. (At
>> least, that's my understanding, but I haven't tried myself.)
>>
>> steven
>>
>> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti <michele.nasti@>
>> wrote:
>>> Hello everybody,
>>> I've read somewhere in the docs that CSound doesn't suppport Mp3,  
>>> and
>>> this
>>> is just right because of patent issues. However I need to distribute
>>> compressed audio files, and I can't forget that mp3 is the market
>>> standard
>>> nowdays. I have two options:
>>>
>>> convert mp3 to wav on the fly in java and send it to the program
>>> find an alternative to use mp3 in CSound (for example, loading the  
>>> mp3 to
>>> a
>>> function table) but i don't know if a solution exists.
>>>
>>> Is there anybody that can take me to some documentation, some  
>>> plugins for
>>> CSound or anything else that you've tried and you know that works?
>>> Thank you all.
>>>
>>
>>
>> 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@.ac with body "unsubscribe csound"
>>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4906704.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





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"

Date2011-10-16 11:00
FromVictor Lazzarini
SubjectRe: [Csnd] Mp3 ideas
There is also GEN49
On 16 Oct 2011, at 10:40, jpff@cs.bath.ac.uk wrote:

> mp3in reads mp3 files using a Russian-written library mpadec
>
>  ar1, ar2 mp3in ifilcod [, iskptim, iformat, iskipinit, ibufsize]
>
> In the manual, written 2009, New in version 5.11
>
>
>> Hello everybody,
>> I've read somewhere in the docs that CSound doesn't suppport Mp3,  
>> and this
>> is just *right* because of patent issues. However I need to  
>> distribute
>> compressed audio files, and I can't forget that mp3 is the market  
>> standard
>> nowdays. I have two options:
>>
>>   1. convert mp3 to wav on the fly in java and send it to the program
>>   2. find an alternative to use mp3 in CSound (for example, loading  
>> the
>> mp3
>>   to a function table) *but i don't know if a solution exists. *
>>
>> Is there anybody that can take me to some documentation, some  
>> plugins for
>> CSound or anything else that you've tried and you know that works?
>> Thank you all.
>>
>> 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"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"

Date2011-10-16 11:53
FromVictor Lazzarini
SubjectRe: [Csnd] Mp3 ideas
For mp3 encoding, one option is to produce an unencoded file and then use the system opcode to call lame

Victor 


On 16 Oct 2011, at 01:08, Michele Nasti wrote:

Hello everybody, 
I've read somewhere in the docs that CSound doesn't suppport Mp3, and this is just right because of patent issues. However I need to distribute compressed audio files, and I can't forget that mp3 is the market standard nowdays. I have two options: 
  1. convert mp3 to wav on the fly in java and send it to the program 
  2. find an alternative to use mp3 in CSound (for example, loading the mp3 to a function table) but i don't know if a solution exists. 
Is there anybody that can take me to some documentation, some plugins for CSound or anything else that you've tried and you know that works? 
Thank you all. 


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2011-10-17 14:53
FromMichele Nasti
Subject[Csnd] Re: Mp3 ideas
Hi all, 
Thanks for the replies. I'm answering with some delay because I had to travel to London, where I am right now. 
Victor, My problem is that I need to load mp3s in a function table because I have to do some time-stretching to it. Is this GEN49 capable of doing it? I don't need platform-dependent opcodes (so no soundinmac), since my program must work on the three main operative systems. 


Il giorno domenica 16 ottobre 2011, Victor Lazzarini ha scritto:
There is also GEN49
On 16 Oct 2011, at 10:40, jpff@cs.bath.ac.uk wrote:

mp3in reads mp3 files using a Russian-written library mpadec

 ar1, ar2 mp3in ifilcod [, iskptim, iformat, iskipinit, ibufsize]

In the manual, written 2009, New in version 5.11



Date2011-10-17 15:16
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: Mp3 ideas
Gen49 is equivalent to gen1 but only reading mp3
==John ff


GEN49

GEN49 — Transfers data from an MP3 soundfile into a function table.
Description

This subroutine transfers data from an MP3 soundfile into a function table.
Syntax

f#  time  size  49  filcod  skiptime  format

Performance

size -- number of points in the table. Ordinarily a power of 2 or a
power-of-2 plus 1 (see f statement); the maximum tablesize is 16777216
(224) points. The allocation of table memory can be deferred by setting
this parameter to 0; the size allocated is then the number of points in
the file (probably not a power-of-2), and the table is not usable by
normal oscillators, but it is usable by a loscil unit. The soundfile can
also be mono or stereo.

filcod -- integer or character-string denoting the source soundfile name.
An integer denotes the file soundin.filcod ; a character-string (in double
quotes, spaces permitted) gives the filename itself, optionally a full
pathname. If not a full path, the file is sought first in the current
directory, then in that given by the environment variable SSDIR (if
defined) then by SFDIR. See also soundin.

skiptime -- begin reading at skiptime seconds into the file.

format -- specifies the audio data-file format required:


1 - Mono file                 3 - First channel (left)
2 - Stereo file               4 - Second channel (right)


If format = 0 the sample format is taken from the soundfile header.
[Note] 	Note

    Reading stops at end-of-file or when the table is full. Table
locations not filled will contain zeros.

    If p4 is positive, the table will be post-normalized (rescaled to a
maximum absolute value of 1 after generation). A negative p4 will
cause rescaling to be skipped.

Examples

Here is a simple example of the GEN49 routine. It uses the files
gen49.csd, and beats.mp3. It uses the MP3 file “beats.mp3”.

Example 922. A simple example of the GEN49 routine.



; Select audio/midi flags here according to platform
; Audio out   Audio in
-odac           -iadc    ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o gen01.wav -W ;;; for file output any platform



; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1
   kamp = 30000
   kcps = 1
   ifn = 1

   ; Play the audio sample stored in Table #1.
   a1 oscil kamp, kcps, ifn
   out a1
endin





; Table #1: read an audio file (using GEN49).
f 1 0 131072 49 "beats.mp3" 0 1

; Play Instrument #1 for 2 seconds.
i 1 0 2
e









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"

Date2011-10-17 15:18
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Mp3 ideas
I think GEN49 should do it, that is what it's for.

Victor
On 17 Oct 2011, at 14:53, Michele Nasti wrote:

Hi all, 
Thanks for the replies. I'm answering with some delay because I had to travel to London, where I am right now. 
Victor, My problem is that I need to load mp3s in a function table because I have to do some time-stretching to it. Is this GEN49 capable of doing it? I don't need platform-dependent opcodes (so no soundinmac), since my program must work on the three main operative systems. 


Il giorno domenica 16 ottobre 2011, Victor Lazzarini ha scritto:
There is also GEN49
On 16 Oct 2011, at 10:40, jpff@cs.bath.ac.uk wrote:

mp3in reads mp3 files using a Russian-written library mpadec

 ar1, ar2 mp3in ifilcod [, iskptim, iformat, iskipinit, ibufsize]

In the manual, written 2009, New in version 5.11



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2011-10-17 18:13
FromEnrico Francioni
Subject[Csnd] Re: Mp3 ideas
it is possible to work filelen with filename.mp3?
thanks…

e







Victor Lazzarini wrote:
> 
> Can't have mp3out because otherwise we would be liable to pay  
> Frauenhoffer Institute for a licence. This kind of thing (also about  
> VST) should be in a FAQ somewhere, because we keep coming back to the  
> same discussion every now and then.
> 
> Victor
> On 16 Oct 2011, at 10:51, Enrico Francioni wrote:
> 
>>
>> Hi,
>>
>> I do not know if it exists, and I do not know if I say nonsense,
>> but it would be nice to have a type of opcode "mp3out" ...
>> or, for Mac, a "soundoutmac" (!?!?!?), ...
>> to write compressed output file format (including mp3 ... etc) ...
>>
>> Is not it?
>>
>> enrico
>>
>>
>>
>>
>>
>> Steven Yi wrote:
>>>
>>> Hi Michele,
>>>
>>> There's the mp3in opcode:
>>>
>>> http://csounds.com/manual/html/mp3in.html
>>>
>>> I'm not sure if that's distributed by everyone though.  One thing you
>>> could do though is use ogg, and I think everyone is distributing with
>>> libsndfile compiled to read ogg files, meaning you could open an ogg
>>> file wherever you would read in a wav or aiff file in Csound. (At
>>> least, that's my understanding, but I haven't tried myself.)
>>>
>>> steven
>>>
>>> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti <michele.nasti@>
>>> wrote:
>>>> Hello everybody,
>>>> I've read somewhere in the docs that CSound doesn't suppport Mp3,  
>>>> and
>>>> this
>>>> is just right because of patent issues. However I need to distribute
>>>> compressed audio files, and I can't forget that mp3 is the market
>>>> standard
>>>> nowdays. I have two options:
>>>>
>>>> convert mp3 to wav on the fly in java and send it to the program
>>>> find an alternative to use mp3 in CSound (for example, loading the  
>>>> mp3 to
>>>> a
>>>> function table) but i don't know if a solution exists.
>>>>
>>>> Is there anybody that can take me to some documentation, some  
>>>> plugins for
>>>> CSound or anything else that you've tried and you know that works?
>>>> Thank you all.
>>>>
>>>
>>>
>>> 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@.ac with body "unsubscribe csound"
>>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4906704.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@.ac 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
> 
> 
> 
> 
> 
> 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@.ac with body "unsubscribe csound"
> 


--
View this message in context: http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4910673.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"


Date2011-10-17 18:54
FromDavid
SubjectRe: [Csnd] Re: Mp3 ideas
You can always save it in 'wav' format and then read it into Audacity (http://audacity.sourceforge.net/). On the Audacity download page, there's a link to Lame (an mp3 encoder) than you can install as a library for Audacity (it might work in Csound as well, if you want to try modifying the source code). I don't know how they get away with it, but who cares? Then read your wav file into Audacity and save it in MP3 format. (Both Audacity and Lame are free.)

On Mon, Oct 17, 2011 at 1:13 PM, Enrico Francioni <francioni61021@libero.it> wrote:

it is possible to work filelen with filename.mp3?
thanks…

e







Victor Lazzarini wrote:
>
> Can't have mp3out because otherwise we would be liable to pay
> Frauenhoffer Institute for a licence. This kind of thing (also about
> VST) should be in a FAQ somewhere, because we keep coming back to the
> same discussion every now and then.
>
> Victor
> On 16 Oct 2011, at 10:51, Enrico Francioni wrote:
>
>>
>> Hi,
>>
>> I do not know if it exists, and I do not know if I say nonsense,
>> but it would be nice to have a type of opcode "mp3out" ...
>> or, for Mac, a "soundoutmac" (!?!?!?), ...
>> to write compressed output file format (including mp3 ... etc) ...
>>
>> Is not it?
>>
>> enrico
>>
>>
>>
>>
>>
>> Steven Yi wrote:
>>>
>>> Hi Michele,
>>>
>>> There's the mp3in opcode:
>>>
>>> http://csounds.com/manual/html/mp3in.html
>>>
>>> I'm not sure if that's distributed by everyone though.  One thing you
>>> could do though is use ogg, and I think everyone is distributing with
>>> libsndfile compiled to read ogg files, meaning you could open an ogg
>>> file wherever you would read in a wav or aiff file in Csound. (At
>>> least, that's my understanding, but I haven't tried myself.)
>>>
>>> steven
>>>
>>> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti &lt;michele.nasti@&gt;
>>> wrote:
>>>> Hello everybody,
>>>> I've read somewhere in the docs that CSound doesn't suppport Mp3,
>>>> and
>>>> this
>>>> is just right because of patent issues. However I need to distribute
>>>> compressed audio files, and I can't forget that mp3 is the market
>>>> standard
>>>> nowdays. I have two options:
>>>>
>>>> convert mp3 to wav on the fly in java and send it to the program
>>>> find an alternative to use mp3 in CSound (for example, loading the
>>>> mp3 to
>>>> a
>>>> function table) but i don't know if a solution exists.
>>>>
>>>> Is there anybody that can take me to some documentation, some
>>>> plugins for
>>>> CSound or anything else that you've tried and you know that works?
>>>> Thank you all.
>>>>
>>>
>>>
>>> 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@.ac with body "unsubscribe csound"
>>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4906704.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@.ac 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
>
>
>
>
>
> 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@.ac with body "unsubscribe csound"
>


--
View this message in context: http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4910673.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"



Date2011-10-17 19:44
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: Mp3 ideas
different opcode mp3len

mp3len

mp3len — Returns the length of an MP3 sound file.
Description

Returns the length of an MP3 sound file.
Syntax

ir mp3len ifilcod

Initialization

ifilcod -- sound file to be queried
Performance

mp3len returns the length of the sound file ifilcod in seconds.


>
> it is possible to work filelen with filename.mp3?
> thanks…
>
> e
>
>
>
>
>
>
>
> Victor Lazzarini wrote:
>>
>> Can't have mp3out because otherwise we would be liable to pay
>> Frauenhoffer Institute for a licence. This kind of thing (also about
>> VST) should be in a FAQ somewhere, because we keep coming back to the
>> same discussion every now and then.
>>
>> Victor
>> On 16 Oct 2011, at 10:51, Enrico Francioni wrote:
>>
>>>
>>> Hi,
>>>
>>> I do not know if it exists, and I do not know if I say nonsense,
>>> but it would be nice to have a type of opcode "mp3out" ...
>>> or, for Mac, a "soundoutmac" (!?!?!?), ...
>>> to write compressed output file format (including mp3 ... etc) ...
>>>
>>> Is not it?
>>>
>>> enrico
>>>
>>>
>>>
>>>
>>>
>>> Steven Yi wrote:
>>>>
>>>> Hi Michele,
>>>>
>>>> There's the mp3in opcode:
>>>>
>>>> http://csounds.com/manual/html/mp3in.html
>>>>
>>>> I'm not sure if that's distributed by everyone though.  One thing you
>>>> could do though is use ogg, and I think everyone is distributing with
>>>> libsndfile compiled to read ogg files, meaning you could open an ogg
>>>> file wherever you would read in a wav or aiff file in Csound. (At
>>>> least, that's my understanding, but I haven't tried myself.)
>>>>
>>>> steven
>>>>
>>>> On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti <michele.nasti@>
>>>> wrote:
>>>>> Hello everybody,
>>>>> I've read somewhere in the docs that CSound doesn't suppport Mp3,
>>>>> and
>>>>> this
>>>>> is just right because of patent issues. However I need to distribute
>>>>> compressed audio files, and I can't forget that mp3 is the market
>>>>> standard
>>>>> nowdays. I have two options:
>>>>>
>>>>> convert mp3 to wav on the fly in java and send it to the program
>>>>> find an alternative to use mp3 in CSound (for example, loading the
>>>>> mp3 to
>>>>> a
>>>>> function table) but i don't know if a solution exists.
>>>>>
>>>>> Is there anybody that can take me to some documentation, some
>>>>> plugins for
>>>>> CSound or anything else that you've tried and you know that works?
>>>>> Thank you all.
>>>>>
>>>>
>>>>
>>>> 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@.ac with body "unsubscribe csound"
>>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4906704.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@.ac 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
>>
>>
>>
>>
>>
>> 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@.ac with body "unsubscribe csound"
>>
>
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4910673.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"
>
>
>
>




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"

Date2011-10-17 20:00
Frommenno
Subject[Csnd] Re: Mp3 ideas
mp3len is a new opcode. The latest manual is not released yet - but i think
it will be soon.
Here is some info about it in a beta release of the manual:
http://members.home.nl/mag.knevel/csound_betamanual/mp3len.html

bye
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/Mp3-ideas-tp4906210p4911087.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"

Date2011-10-28 12:11
Fromk_o_m_p
SubjectRe: [Csnd] Mp3 ideas
Hi Matt,
I was trying the opcode soundinmac and had a huge amount of samples out of range. 0dBfs was set to 1. When I changed it to 32000 everything worked fine. Is perhaps soundinmac ignoring 0dbfs?
By the way: it's great to have one opcode that can read all these formats!
Best,
Luis

Am 16.10.11 02:57, schrieb matt ingalls:
also, if you are on a mac, you can try my  "soundinmac"  opcode
(if i knew how to add this to canonical, i would!)

http://sonomatics.com/soundinmac.zip

( in addition to supporting all files types supported by MacOS, pitch shifting less aliasing than diskin2's sinc mode )


On Oct 15, 2011, at 5:25 PM, Steven Yi wrote:

Hi Michele,

There's the mp3in opcode:

http://csounds.com/manual/html/mp3in.html

I'm not sure if that's distributed by everyone though.  One thing you
could do though is use ogg, and I think everyone is distributing with
libsndfile compiled to read ogg files, meaning you could open an ogg
file wherever you would read in a wav or aiff file in Csound. (At
least, that's my understanding, but I haven't tried myself.)

steven

On Sun, Oct 16, 2011 at 1:08 AM, Michele Nasti <michele.nasti@gmail.com> wrote:
Hello everybody,
I've read somewhere in the docs that CSound doesn't suppport Mp3, and this
is just right because of patent issues. However I need to distribute
compressed audio files, and I can't forget that mp3 is the market standard
nowdays. I have two options:

convert mp3 to wav on the fly in java and send it to the program
find an alternative to use mp3 in CSound (for example, loading the mp3 to a
function table) but i don't know if a solution exists.

Is there anybody that can take me to some documentation, some plugins for
CSound or anything else that you've tried and you know that works?
Thank you all.


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"




--
signatur luis antunes pena
Severinswall 54
D-50678 Köln

http://luisantunespena.eu

+49 (0)221 29020757
+49 (0)176 968 09 867 (mobile)