|
Post by nathanmyersc on Mar 31, 2024 13:14:16 GMT
Your code gives me this error. I get the error for both files.
Traceback (most recent call last): File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 128, in <module> main() File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 36, in main p = threading.Thread(target=process_data, args=(text,)) ^^^^^^^^^ NameError: name 'threading' is not defined. Did you forget to import 'threading'?
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. it is considerably more complicated than the python version as i had to manually deal with all the bytes for the headers and stuff. But it works. and you could pretty easily modify the write data chunk section for your purposes. let me know what you come up with. ALSO i did write a c++ program to handle wav files and custom insertion of affirmations. But it can probably be repurposed for sine wave activity somehow. here have a lookAttachments:main.cpp (48.34 KB)
|
|
|
Post by AnthroHeart on Mar 31, 2024 13:15:10 GMT
Your code gives me this error. I get the error for both files.
Traceback (most recent call last): File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 128, in <module> main() File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 36, in main p = threading.Thread(target=process_data, args=(text,)) ^^^^^^^^^ NameError: name 'threading' is not defined. Did you forget to import 'threading'?
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. Do you use default 50% smoothing?
|
|
|
Post by nathanmyersc on Mar 31, 2024 13:15:54 GMT
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. Do you use default 50% smoothing? i did use 50% yes.
|
|
|
Post by nathanmyersc on Mar 31, 2024 13:16:51 GMT
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. Do you use default 50% smoothing? with my program youd probably only need to modify the WriteDataChunk section to get what you want done.
|
|
|
Post by AnthroHeart on Mar 31, 2024 13:21:51 GMT
Your code gives me this error. I get the error for both files.
Traceback (most recent call last): File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 128, in <module> main() File "C:\Repeater\NathanMyersc\CreateSineNoiseFromTxtFile.py", line 36, in main p = threading.Thread(target=process_data, args=(text,)) ^^^^^^^^^ NameError: name 'threading' is not defined. Did you forget to import 'threading'?
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. It works now, but after writing the WAV it gets stuck and I can't even ctrl-c out of it. I just checked the text one.
|
|
|
Post by nathanmyersc on Mar 31, 2024 13:28:19 GMT
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. It works now, but after writing the WAV it gets stuck and I can't even ctrl-c out of it. I just checked the text one. I noticed that i just pressed the x.
|
|
|
Post by nathanmyersc on Mar 31, 2024 14:16:14 GMT
They work now. But switching to c++ for this one would be good super slow. i even tried to reduce the math by precompiling some of hte things that could be precompiled. But feels good at 174hz with I AM GODLIKE WITH GODLIKE PHYSIQUE AND REGENERATION. i feel the power. Do you use default 50% smoothing? Did you see the c++ code i gave you? should be a helpful start since it already took care of all the header nonsense for you.
|
|
|
Post by AnthroHeart on Mar 31, 2024 14:24:41 GMT
Do you use default 50% smoothing? Did you see the c++ code i gave you? should be a helpful start since it already took care of all the header nonsense for you. I didn't really look into it since you mentioned repurposing it for sine wave activity and I wasn't sure about trying to figure out how to get it to work with sine waves.
|
|
|
Post by nathanmyersc on Mar 31, 2024 14:36:10 GMT
Did you see the c++ code i gave you? should be a helpful start since it already took care of all the header nonsense for you. I didn't really look into it since you mentioned repurposing it for sine wave activity and I wasn't sure about trying to figure out how to get it to work with sine waves. well you could take the code and take the WRITEDATACHUNK function and the python code you have and ask chat gpt.
|
|
|
Post by reden on Mar 31, 2024 14:46:56 GMT
I didn't really look into it since you mentioned repurposing it for sine wave activity and I wasn't sure about trying to figure out how to get it to work with sine waves. well you could take the code and take the WRITEDATACHUNK function and the python code you have and ask chat gpt. You could use claude.ai or something like OpenRouter where you use API keys to pay per usage.
|
|
|
Post by AnthroHeart on Mar 31, 2024 15:17:31 GMT
I added a Smoothing Factor (0-100.0%) to help smoothen out the pulses in the generated WAV.
The closer to 100% you use for a smoothing factor, the more like a pure sine wave it will sound.
0% smoothing will retain the original audio.
I updated these now to include a progress bar as well as writing 10,000 samples at a time to make it a bit faster.
They require: pip install -r requirements.txt
I like 174Hz at 50% Smoothing.
|
|
|
Post by nathanmyersc on Mar 31, 2024 15:31:52 GMT
I added a Smoothing Factor (0-100.0%) to help smoothen out the pulses in the generated WAV.
The closer to 100% you use for a smoothing factor, the more like a pure sine wave it will sound.
0% smoothing will retain the original audio.
I updated these now to include a progress bar as well as writing 10,000 samples at a time to make it a bit faster.
They require: pip install -r requirements.txt
I like 174Hz at 50% Smoothing.
Sweet i made a version of the c++ code i wrote to do the sine wav thing and it works. heres the code its alot faster. Attachments:main.cpp (54.6 KB)
|
|
|
Post by nathanmyersc on Mar 31, 2024 16:01:16 GMT
This one is intention the previous one is text file. both work. way faster than any python script we can write. Attachments:main.cpp (55.02 KB)
|
|
|
Post by AnthroHeart on Mar 31, 2024 16:26:14 GMT
I added a Smoothing Factor (0-100.0%) to help smoothen out the pulses in the generated WAV.
The closer to 100% you use for a smoothing factor, the more like a pure sine wave it will sound.
0% smoothing will retain the original audio.
I updated these now to include a progress bar as well as writing 10,000 samples at a time to make it a bit faster.
They require: pip install -r requirements.txt
I like 174Hz at 50% Smoothing.
I updated to exclude non-alphanumeric characters from both files from the intention or specified input txt file.
Single and double quotes were throwing off the wave generation. Not causing error, but making a malformed WAV file because of the differences of ASCII values.
|
|
|
Post by AnthroHeart on Mar 31, 2024 18:18:45 GMT
I found this interesting site that shows a frequency analysis that is easier to manage than Audacity:
When I choose 174Hz as the output frequency with 33.333% smoothing, this is the generation. The peak is actually at 174.32 Hz.
|
|