Benvenuto, Visitatore. Per favore, effettua il login o registrati.

  Hai perso la tua email di attivazione?

Main Home Help Ricerca Login Registrati

+  Virtual Sound - FORUM
|-+  Linguaggi per Computer Music, Video e Grafica
| |-+  Csound
| | |-+  Problema Qutecsound con certi opcode (soundin, hrtf..)
« precedente successivo »
Pagine: [1] Stampa
Autore Topic: Problema Qutecsound con certi opcode (soundin, hrtf..)  (Letto 1199 volte)
Manfredi
Newbie
*
Posts: 10


Guarda Profilo
« il: Marzo 09, 2010, 15:47:00 »

Utilizzando QuteCsound non riesco a far leggere file audio tramite l'opcode soundin, nè tantomeno con gli esempi forniti con QuteCsound stesso. Sembra che non riesca a leggere files dall'hard disk. A volte chiude direttamente l'interfaccia, altre volte fa partire l'elaborazione segnalandomi l'errore nella console. Ho abbreviato al massimo il percorso del file ma non cambia niente; gli ho fornito l'indirizzo della cartella SoundSample, e niente; ho provato a dargli il percorso completo...niente.

Lo stesso succede quando provo ad utilizzare l'opcode per la spazializzazione 3d hrtf, con il quale Qutecsound si chiude direttamente...

Che fare? E' QuteCsound che non è ancora ben sviluppato o il problema può essere legato ad altro? Qualcuno ha avuto problemi simili?

Grazie in anticipo per l'aiuto.

Manfredi
Loggato
vallste
Jr. Member
**
Posts: 55


Guarda Profilo WWW
« Risposta #1 il: Marzo 09, 2010, 21:35:27 »

Ma csound da riga di comando funziona?
Riesci a fargli eseguire gli stessi file?
Hai settato SADIR, SFDIR, SSDIR in .csoundrc o sulla GUI (se esiste ancora, non lo so, uso da riga di comando...)?
Loggato
Manfredi
Newbie
*
Posts: 10


Guarda Profilo
« Risposta #2 il: Marzo 09, 2010, 23:55:36 »

Ho settato sia SADIR che SFDIR che SSDIR.

Quando ho avviato in terminale il csd per il suono 3d con hrtf sembrava funzionare, ma appena mettevo in esecuzione o aprivo in editor esterno mi si chiudeva immediatamente l'interfaccia...

Con soundin o diskin, o diskin2 etc etc non funziona neanche l'avvio da terminale.
Loggato
vallste
Jr. Member
**
Posts: 55


Guarda Profilo WWW
« Risposta #3 il: Marzo 10, 2010, 13:22:07 »

diskin2 funziona? (mi pare di aver letto sulla mailing list che diskin e soundin non vadano a dovere...)

Potresti fare un tentativo rimuovendo le impostazioni per SSDIR e compagnia bella dalle tue opzioni (magari fatti un backup del file di configurazione prima) e:
usare i percorsi del file completi tipo "c:/music/samples/loop001.wav" oppure
metti i file audio nella stessa cartella del csd e lo richiami semplicemente con "loop001.wav" senza percorso.

Al momento non mi viene in mente altro, magari posta il csd che appena posso lo provo...

Ciao
Loggato
Manfredi
Newbie
*
Posts: 10


Guarda Profilo
« Risposta #4 il: Marzo 13, 2010, 21:18:10 »

purtroppo non funziona neanche diskin2... è come se non trovasse l'hd. anche modificando tutte le impostazioni..
Loggato
vallste
Jr. Member
**
Posts: 55


Guarda Profilo WWW
« Risposta #5 il: Marzo 15, 2010, 09:52:50 »

A questo punto io proverei con un'altra release di csound...  Huh
Loggato
Manfredi
Newbie
*
Posts: 10


Guarda Profilo
« Risposta #6 il: Marzo 20, 2010, 17:43:22 »

ecco cosa dice in console:

PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
WARNING: could not open library '/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/libjackTransport.dylib' (-1)
WARNING: could not open library '/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes/librtjack.dylib' (-1)
0dBFS level = 32768.0
Csound version 5.12 (float samples) Mar  2 2010
libsndfile-1.0.20
UnifiedCSD:  /Users/Frida/Music/Audio/Csound/suono3d.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /var/folders/1I/1IMUbs5KGASL1K5prySnIE+++TI/-Tmp-//csound-vt6jKk.orc
scorename: /var/folders/1I/1IMUbs5KGASL1K5prySnIE+++TI/-Tmp-//csound-YOdAf0.sco
rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled
orch compiler:
   instr   1   
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
   ... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
Csound version 5.12 (float samples) Mar  2 2010
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to test.aif (AIFF)
SECTION 1:
new alloc for instr 1:
INIT ERROR in instr 1: soundin: taglio_voce_meg.aif: failed to open file
asrc   aslc   soundin   "taglio_voce_meg.aif"   iskip   0   0   0   
     B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerformKsmps().
inactive allocs returned to freespace
end of score.         overall amps:      0.0      0.0
      overall samples out of range:        0        0
1 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.012s
0 4096-byte soundblks of shorts written to test.aif (AIFF)

e lo stesso vale per diskin e diskin2...
Loggato
vallste
Jr. Member
**
Posts: 55


Guarda Profilo WWW
« Risposta #7 il: Marzo 22, 2010, 13:55:17 »

Ho sotto mano questo che funziona sia sulla versione 5.09 (Windows) che sulla 5.12 compilata da cvs qualche settimana fa (Linux). Non usa diskin et similia ma l'opcode tab per leggere un file aif caricato con la GEN 01, è un pò caotico (ci sto lavorando) ma per testare il tuo problema potrebbe essere utile (se non hai errori e non senti nulla premi il tasto P1 mette in mute la traccia):


<CsoundSynthesizer>
<CsOptions>
;Linux
;-iadc:system:capture_ 
;-odac:system:playback_ -+rtaudio=jack -+rtmidi=null -b 80 -B 1024
;Windows
-+rtaudio=PortAudio
</CsOptions>
<CsInstruments>
sr    =    44100   
ksmps    =    1
nchnls    =    2
zakinit 2, 1

#define ONOFFKEY(ASCII'NUM)
#if (kascii == $ASCII && keyactivation == 1) then
   if gkOnOff$NUM == 0 then
      FLsetVal 1, 1, giOnOff$NUM
   else
      FLsetVal 1, 0, giOnOff$NUM
   endif
endif#

#define CHANNEL(NUM)
#a$NUM tab andx , $NUM
if gkOnOff$NUM == 1 then
   zawm a$NUM, 0
endif#

FLpanel "Player", 550, 100, 1, 1, 1, 1, 0
gkPlay,gihPlay      FLbutton   "@>",               1,    0,     2,     50,     30,   0, 0,    0,      10,      0,      -1
gkPause,gihPause   FLbutton   "@||",               1,    0,     2,     50,     30,    50, 0,   -1

gkOnOff01, giOnOff01 FLbutton "P1", 1, 0, 2, 45, 30, 100, 0, -1


gkLoopBeg, gihLoopBeg   FLslider    " ",         0,      1,    0,    3, -1,   550,    15,     0, 70
gkLoopEnd, gihLoopEnd   FLslider    "Loop Points",   0,      1,    0,    3, -1,   550,    15,     0, 85
FLsetVal_i   0,    gihLoopBeg
FLsetVal_i   1,    gihLoopEnd

FLpanel_end
FLrun

gitablelen   init   1048576
girecdur   init   0

instr 1
gkSpeed init 1
gkandx init 0
kascii FLkeyIn
keyactivation changed kascii
;Activate audio channel
$ONOFFKEY(49'01)
;Speed set
if (kascii == 122 && keyactivation == 1) then ;z key normal speed
   gkSpeed = 1
elseif (kascii == 120 && keyactivation == 1) then ;x key normal speed
   gkSpeed = .75
elseif (kascii == 99 && keyactivation == 1) then ;c key normal speed
   gkSpeed = .5
elseif (kascii == 118 && keyactivation == 1) then ;v key normal speed
   gkSpeed = .25
endif
;markers
if (kascii == 113 && keyactivation == 1) then ;q key set beginning loop point at beginning
   FLsetVal 1,0, gihLoopBeg
elseif (kascii == 119 && keyactivation == 1) then ;q key set beginning loop point at actual position
   FLsetVal 1,gkandx, gihLoopBeg
elseif (kascii == 101 && keyactivation == 1) then ;e key set end loop point at end
   FLsetVal 1,1, gihLoopEnd
elseif (kascii == 114 && keyactivation == 1) then ;r key set end loop point at actual position
   FLsetVal 1,gkandx, gihLoopEnd
endif
endin

instr 10
if   gkPlay=0   then
   turnoff
endif   
PAUSE:
if   gkPause=1   then
   kgoto   PAUSE
endif
gkrecdur init nsamp(1)
iporttime   =   0.02
kporttime   linseg   0,0.001,iporttime,1,iporttime
kLoopBeg   portk   gkLoopBeg, kporttime
kLoopEnd   portk   gkLoopEnd, kporttime
   
kLoopBeg   =   kLoopBeg * gkrecdur
kLoopEnd   =   kLoopEnd * gkrecdur
kLoopLen   =   kLoopEnd - kLoopBeg

kPhasFrq   divz   gkSpeed,   (kLoopLen/sr),        .00001
andx      phasor   kPhasFrq
kLoopBeg   =   (kLoopBeg < kLoopEnd ? kLoopBeg : kLoopEnd)
andx      =   (andx*abs(kLoopLen)) + kLoopBeg   
gkan   downsamp andx
gkandx = (gkan - kLoopBeg) / abs(kLoopLen)

$CHANNEL(01)

aout zar 0
fsig  pvsanal   aout, 1024, 256, 1034, 1 ; analyse it
ftps  pvscale   fsig, 1/gkSpeed, 1, 2
atransp  pvsynth   ftps
zacl 0, 1
outs atransp * 5000, atransp * 5000
endin

</CsInstruments>
<CsScore>
f   1   0    0   1   "drums_loop.aif"   0   6   1
i   1   0   3600
e
</CsScore>
</CsoundSynthesizer>


Ciao
Loggato
Manfredi
Newbie
*
Posts: 10


Guarda Profilo
« Risposta #8 il: Marzo 23, 2010, 12:26:58 »

grazie a tutti, il problema è risolto: è bastato inserire sotto la riga CsOptions la stringa con input e output:

<CsoundSynthesizer>
<CsOptions>
-odac           -iadc     -d     
</CsOptions>
<CsInstruments>

si vede che sono un principiante...

Grazie ancora,

Manfredi
Loggato
Pagine: [1] Stampa 
« precedente successivo »
Salta a:  


Login con username, password e lunghezza della sessione

Powered by MySQL Powered by PHP © Copyright 1996 - 2008 - ConTempoNet Edizioni Musicali ® - P.IVA: 05174251008
Tutti i diritti riservati - Tutti i marchi sono registrati -
È vietata la riproduzione, anche parziale, dei testi e delle immagini.
Powered by SMF 1.1.15 | SMF © 2006-2008, Simple Machines
Traduzione Italiana a cura di SMItalia
XHTML 1.0 Valido! CSS Valido!