Step 7: Make Your Own Records
1. Download Processing.
2. Download the ModelBuilder library for Processing. I used version 0007a03.
3. Unzip the Modelbuilder library .zip and copy the folder inside called "modelbuilder". Unzip the processing .zip and go to Processing>modes>java>libraries and paste the "modelbuilder" folder in the "libraries" folder.
4. Download Python 2.5.4.
5. Download Audacity.
6. Download the zip file below called "RecordGenerator". Unzip this and open the folder.
7. Open an audio file of your choice with Audacity. Use Effect>Amplify to amplify the signal as much as you can without noticeable effects of clipping (you will be able to get away with some clipping, and remember this is not crystal clear audio anyway). Make sure there is 2 sec of blank audio at the end of the track so that nothing gets clipped. Keep the audio under 6 min. File>Export this file and save it in the "RecordGenerator" folder as a wav file.
8. Open the Python file called "wavtotxt". Copy the file name of the file you just saved in the line:
fileName = "your_file_name_here.wav"
Hit Run>RunModule, after a minute or two you will have a .txt file saved in the RecordGenerator folder.
9. Open the Processing Sketch. In File>Preferences check the box that says "increase the maximum available memory to" and write in the amount of available ram on your computer. I've found that my laptop with 4GB RAM can handle audio files up to 1.5 min long. For longer files you will need to use a computer with 12-16GB of RAM. If Processing starts and then gets stuck or crashes, it is a RAM issue and you will need to move to a machine with more RAM.
10. Change the name of the import file in the Processing sketch to your txt file name:
String filename = "your_file_name_here.txt";
Close all other programs running on your computer and run the Processing sketch Sketch>Run. After a few seconds you will see "record drawn, starting grooves" appear at the bottom of the Processing window. After some more time you will get updates on the status of the sketch: "3 of 85 grooves drawn". Eventually Processing will tell you that it is writing your STL file and when it is done it will say "Closing 'name_of_your_file.stl' and tell you haw many faces are in the file. You can find the finished file in the RecordGenerator folder.
Once you've made them, post them! I've been posting mine on the 123D gallery and the Pirate Bay. Enjoy, and let me know if you have questions or need help getting this to work. I've tested this process in both Windows (64 bit) and Mac OS, though I'd imagine it will work for Linux as well.
Remove these ads by
Signing Up











































Visit Our Store »
Go Pro Today »




I assume a lot of people are contacting you, so, I will be quick.
When I try to convert the stereo file into a mono file via Python, the .txt file never shows up in my folder. I have a TypeError message from Python saying :
'map' object is not subscriptable
Do you know how I can fix that ?
Bests from France.
Romain
This is amazing, you're a genius!
I'm having trouble, I keep getting the following response;
Traceback (most recent call last):
File "C:\Users\Computer\Downloads\F0Y8Y6VHAUNM3D4\wavtotext.py", line 34, in
frameOneChannel[i] = frameInt[4*i+1]*2**8+frameInt[4*i]#separate channels and store one channel in new list
IndexError: list index out of range
>>>
What do you think I'm doing wrong?
T
I'm gripped by the idea of making my own record and making a record player to play it on.
Thanks for your input!
Toby
String filename = "your_file_name_here.txt";
and change your_file_name_here.txt to whatever the name of your txt from python is. this is the same way you should have imported the wav into python.
Watch the video at the very beginning of the instructable, you'll see what I mean.
I tried to make my own 3D model with processing but I have some trouble with step 10. "Change the name of the import file in the Processing sketch to your txt file name: String filename = "your_file_name_here.txt";"
Should we write "String filename = "your_file_name_here.txt";" in the text editor of Processing or make file>open and open the .txt file ?
Thanks in advance for your advices !
String filename = "daftpunk.txt";
does that make sense?