Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about samplerate of Befaco Lich
Staff
#1
0
0
Question about samplerate of Befaco Lich

Hi folks! I own a Befaco Lich and trying to write code for it on C++. I already wrote a quantizer, and started to write oscillator, but ran into a problem: It looks like samples per second my function processAudio(AudioBuffer &buffer) gets is not 48k, but something around 1300. What am I doing wrong?

float time = ((float)samples)/SAMPLERATE;

float frequency = 1;

return sin(frequency*time/tau);

(where "samples" is amount of samples which I gotten since the beginning of the program, and tau = 2*pi = 6.28318530718)

With right samplerate this must result in LFO with frequency 1Hz, but it is only when I set SAMPLERATE to ~1300.

Maybe problem with code? Maybe I can somehow set audiobuffer's samplerate? Somebody have the same problem?

Thanks.

submitted by /u/Perucmpamypa
[link] [comments]
Reply


Forum Jump:

[-]
Private Messages
Please login or register to use this functionality.

[-]
Who's Online
There are currently no members online.

[-]
Latest Threads
Blipblox MPC-style sampler myTRACKS aims...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 4
The Swarm is a super saw synth in a supe...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 3
Denon announces DHT-S218 full-range Dolb...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 5
The Gearnews guide to field recording
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 2
Elgato Facecam MK.2 brings HDR and PTZ f...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 2
Erica Synths PERKONS HD-01 Drum Synthesi...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 1
Magix Sound Forge Pro 18: Tools for Soun...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 4
Audio Essentials Deals from Wavebone, K&...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 4
SEQTRAK, modwave, Kontakt and Vintage KO...
Last Post: SynthWizard
Yesterday 10:06 PM
» Replies: 0
» Views: 3