soundin
Date | 2016-12-22 16:12 |
From | rmgls |
Subject | soundin |
hi all, i just recompiled csound from git. all works fine except that soundin gives blank noise with portaudio, and just a click with CoreAudio, with the good -odac. i tried to change format with the same result. Note: i have had to reinstall all my system due to a system error! (osx10.12 up-to-date.) Any idea? thanks in advance. Raoul rmgls orange.fr 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 |
Date | 2016-12-22 17:08 |
From | Victor Lazzarini |
Subject | Re: soundin |
Can you post your CSD here? ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 22 Dec 2016, at 16:12, rmgls |
Date | 2016-12-22 19:19 |
From | rmgls |
Subject | Re: soundin |
Yes of course, Here it is. But as I reinstalled all, perhaps an external library is the culprit? csplay.sh # can be called by lynx browser (first usej) # or directly providing the sound filename """""""""" Cut """""""""""" #!/bin/sh # call csound as a player for wav/mp3/m4a files # this can be enhanced of course. echo "$1" # print filename if echo "$1" | grep -q ".m4a" then readOpcode="soundin" fi if echo "$1" | grep -q ".mp3" then readOpcode="mp3in" fi if echo "$1" | grep -q ".wav" then readOpcode="diskin2" fi # CSDPATH is defined in .bashrc /usr/local/bin/csound "$CSDPATH"/play.csd --omacro:NAME="$1" --omacro:READER=$readOpcode """""""""" cut """""""""" play.csd from the floss manual thanks to the author, sligthly modified. """""""""" cut """""""""" <CsoundSynthesizer> ; example written by Iain McCurdy <CsOptions> ;; -odac999 -iadc999 ;; liste les e/s ;; -+rtaudio="CoreAudio" -odac3 ;; first port => portaudio = 0, coreaudio = 1 </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 8; canaux du fichier 8 sinon ulm ne parle pas si >= 3 0dbfs = 1 gichn filenchnls "$NAME" instr 1 ilen filelen "$NAME" ires strcmp "$READER", "mp3in" if ires == 0 then ilen mp3len "$NAME" event_i "i", 2, 0, ilen endif ires strcmp "$READER", "diskin2" if ires == 0 then event_i "i", 3, 0, ilen endif ires strcmp "$READER", "soundin" if ires == 0 then event_i "i", 4, 0, ilen endif endin instr 2 ; play mp3 audio from disk a1, a2 mp3in "$NAME", 0, 0, 0, 64 ;; 0 = skip... 64 is ibufsize default 4096 outch 1, a1, 2, a2 ;; stereo only at this time endin instr 3 ;; play wav kSpeed = 1 iSkip = 0 iLoop = 0 ; read audio from disk using diskin2 opcode if gichn == 1 then a1 diskin2 "$NAME", kSpeed, iSkip, iLoop elseif gichn == 2 then a1, a2 diskin2 "$NAME", kSpeed, iSkip, iLoop outch 1, a1, 2, a2 elseif gichn == 8 then a1, a2, a1, a2, a1, a2, a1, a2 diskin2 "$NAME", kSpeed, iSkip, iLoop a1, a2, a1, a2, a1, a2, a1, a2 monitor outch 1, a1, 2, a2, 3, a1, 4, a2, 5, a1, 6, a2 endif endin instr 4; play m4a audio from disk a1, a2 soundin "$NAME" outch 1, a1, 2, a2 ;; stereo only for now endin </CsInstruments> <CsScore> i 1 0 5 e </CsScore> </CsoundSynthesizer> Raoul
|
Date | 2016-12-22 20:30 |
From | Victor Lazzarini |
Subject | Re: soundin |
Did you try with WAV or AIFF files? It could be that the libsndfile versio you are using can’t cope with m4a files. Try replacing soundin with diskin,if the problem persists, then it’s libsndfile. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 22 Dec 2016, at 19:19, rmgls |
Date | 2016-12-23 14:42 |
From | rmgls |
Subject | Re: soundin |
Hello Victor, Libsndfile is 1.0.27 i tried the csound-6.07beta-universal.dmg for OS X, with the same results: wav and mp3 work with diskin2 and mp3in, but not soundin. Please can you tell me how to trace the library, (I installed from source with -g) But this is not enough perhaps? Thanks. So I think it has to do with the library, but it is (bizarre) That libsndfile was working before I reinstalled OS X 10.12. > On 22 Dec 2016, at 21:30, Victor Lazzarini |
Date | 2016-12-23 14:53 |
From | Victor Lazzarini |
Subject | Re: soundin |
Does WAV work with soundin? We will chase this up, but you are better off using diskin instead. Soundin is very basic and diskin is far superior. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 23 Dec 2016, at 14:43, rmgls |
Date | 2016-12-23 15:15 |
From | Michael Gogins |
Subject | Re: soundin |
Can't we just throw out the soundin code and re-implement soundin using the diskin2 code? The arguments appear very similar. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Dec 23, 2016 at 9:53 AM, Victor Lazzarini |
Date | 2016-12-23 15:37 |
From | Victor Lazzarini |
Subject | Re: soundin |
We can, I think. Diskin is already diskin2. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 23 Dec 2016, at 15:15, Michael Gogins |
Date | 2016-12-23 15:42 |
From | jpff |
Subject | Re: soundin |
Seemssane; wo is going to do it? 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 |
Date | 2016-12-23 16:06 |
From | Arthur Hunkins |
Subject | Re: soundin |
Additional observations regarding soundin: 1) If it isn't broken, don't fix it. (I'm not aware that soundin is broken.) 2) If something is simpler, available and does what you want, use it. 3) Soundin is particularly valuable in certain situations in that it allows for file identification via numeric variable rather than filename. This feature has vastly simplified coding for me in a recent project. (Indeed, I never did find a workable solution using filenames.) Art Hunkins Art Hunkins On Fri, Dec 23, 2016 at 10:37 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: We can, I think. Diskin is already diskin2. |
Date | 2016-12-23 16:38 |
From | rmgls |
Subject | Re: soundin |
Soundin plays quite well .wav files But gives blank noise for m4A. Diskin2 give s no sound at all with .m4A, And of course plays quite well .wav files. Raoul Rmgls@orange.fr > On 23 Dec 2016, at 15:53, Victor Lazzarini |
Date | 2016-12-23 16:55 |
From | jpff |
Subject | Re: soundin |
I see no evidence that libsndfile knows about m4a files in 1.0.28 Did this ever work? On Fri, 23 Dec 2016, rmgls wrote: > Soundin plays quite well .wav files > But gives blank noise for m4A. > > Diskin2 give s no sound at all with .m4A, > And of course plays quite well .wav files. > > Raoul > Rmgls@orange.fr > > >> On 23 Dec 2016, at 15:53, Victor Lazzarini |
Date | 2016-12-23 19:09 |
From | Victor Lazzarini |
Subject | Re: soundin |
I can have a go. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 23 Dec 2016, at 15:42, jpff |
Date | 2016-12-24 14:03 |
From | Victor Lazzarini |
Subject | Re: soundin |
Soundin is actually broken if you expect resampling (it doesn’t do it). There is no real point in keeping the old implementation when we could do the new one. The soundin.X transformation from X is not linked to soundin especifically. It’s csound code that can be used elsewhere, e.g. with diskin. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 23 Dec 2016, at 16:06, Arthur Hunkins |
Date | 2016-12-24 17:26 |
From | Victor Lazzarini |
Subject | Re: soundin |
Done in GIT. Tested minimally, it seems to work OK. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 23 Dec 2016, at 19:09, Victor Lazzarini |