Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~10.9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Jake_4

Hello, I am trying to create a tone, then another tone using this code. It currently only plays one of them. Is there something missing or am i going about this wrong? for(int n = 0; n < num_samples; n++) //where n is the step |start of for loop { …

Member Avatar for pritaeas
0
184
Member Avatar for Jake_4

Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one second using a loop similar to this // loop to generate audio samples for(int n = 0; n < num_samples; …

Member Avatar for phorce
0
314
Member Avatar for Jake_4

Could anyone explain the problem im having on line 28, (value = amp*sin(2*pi*freq*t);) i keep getting this error message 28 11 [Error] cannot convert 'double' to 'float*' in assignment #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using namespace std; int main() { double pi=3.141592653589793238462643383279502884197169399375; float* value; unsigned long length …

Member Avatar for StuXYZ
0
4K
Member Avatar for Jake_4

I am new to C++ and i don't understant this error message i am recieving. Could you show me the solution? ([Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]) line 25, col 17 (the 'n' is the problem) #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using …

Member Avatar for Labdabeta
0
7K