Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'pitchamd' opcode causes segmentation fault (macOS) #1599

Closed
pierre-dlsi opened this issue Mar 14, 2022 · 0 comments
Closed

'pitchamd' opcode causes segmentation fault (macOS) #1599

pierre-dlsi opened this issue Mar 14, 2022 · 0 comments

Comments

@pierre-dlsi
Copy link

pierre-dlsi commented Mar 14, 2022

The 'pitchamd' opcode causes a segmentation fault when the number of samples in a- variables is too high AND the '-n' command line option is used

Tested on 6.12, 6.16 on macOS Mojave 10.14.6

The following code fails:

 <CsoundSynthesizer>
 <CsOptions>
 -n ; works fine with '-o dac'
 </CsOptions>
 <CsInstruments>
 
 sr = 44100 
 kr = 10    ; low kr --> high a- array size. It works when kr >= 14
 
 instr f0
   SFich   = p4  
   aSound  soundin  SFich
   kFrec, kAmp  pitchamdf  aSound, 100, 500  
   out     aSound         ; monitor
 endin
 
 </CsInstruments>
 <CsScore>
 
 ;  inst onset   dur   fich    
 ;   p1   p2     p3       p4  
 ;-----------------------------------------
 i "f0"   0    1  "sound.wav" 
 e
 </CsScore>
 </CsoundSynthesizer>
vlazzarini pushed a commit that referenced this issue Mar 14, 2022
vlazzarini pushed a commit that referenced this issue Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants