Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • Teenfor3's Avatar
    Today, 04:40 PM
    For Binary files...RAW would be the most popular and Audacity would probably be the best editor/converter. With Audacity open/import various sound files and you can hear it and see its waveform and edit/convert and...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    Yesterday, 03:50 PM
    I copied 5 files from Serial....2 of size 2MB approx each and 3 other small files about 15 Kb each. All done listed on one command line. All copied OK, and played OK, except for a small about 2 ms glitch in one of the...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    Yesterday, 12:32 AM
    Yes, that worked, I put Python 2.7 x86 version on Windows 10 64 bit laptop and pyserial 2.6 version as per earlier posts I had put Python 2.6 64 bit version on but couldnt find pyserial2.6 for 64bit....googled alot...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-18-2018, 10:18 PM
    Yes, I think there is something about needing to unplug/plug in again. Although I have got small files copied without unplugging at all between loading and running the 2 sketches Copy and List. But some times the...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-18-2018, 08:01 PM
    The CopyfromSerial sketch I am using is posted on post #71. Basically it is loaded and running on Teensy. The audio.raw files to be copied are on PC in same folder as the Python script....which is the...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-18-2018, 06:01 PM
    OK, thanks for that, it has given me a better understanding as to what happens for the different settings. I wonder what is happening when I try to copy a 1.6 MB or a 700 KB to spiflash using Copyfromserial.....My PC...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-18-2018, 10:38 AM
    Yes, No USB means Press Button to upload sketch....Ok thats fine....I never gave all this much thought in the past as it never gave me a problem, the only time I think I ever changed these settings was when doing MIDI...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 11:19 PM
    IWith the setting indicated in last post, it plays OK when Powered by USB port of the PC but does not play if plugged into a USB power bank that is fully charged and I have tried on several other Teensy devices to make...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 10:30 PM
    Thanks defragster for the reply......but I am still clutching at straws in the background....???? I normally I think ? keep my Tools, USB type set to USB HID......and this seems to always work....but for CopyFromSerial...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 09:14 PM
    It does not like " while(!Serial);" ......thats the problem of needing to open the monitor to get sound. I tried various options but in the end just commented it out........it play for me now without opening the...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 07:48 PM
    Yes, sending sound from the RAW and TRW files that are copied to spiFlash to DAC/A14 on teensy3.2 plugged into audio board just because the flash chip is solderd on it but the audio board is not enable. I have only a...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 11:54 AM
    Yes, now Copying files from Serial and Playing sound.......But............................................ The 10 second pause after the SerialFlashbegin helps to be more consistant when to start the Python script,...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-17-2018, 12:40 AM
    I have actually got it working......and the problem seem to be how the sketch is compiled and uploaded and how long I take to do it..??? The problem I had after Python2.7 and pyserial2.6 was all appeared to work but no...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 09:00 PM
    When I installed the python2.7 I used the windows installer and also a windows installer version of pyserial2.7. Your post yesterday suggested the tar version pyserial2.6... I have uninstalled the pyserial2.7 and...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 05:50 PM
    I installed Python2 (2.7), not Python 3. Don't forget to just unplug and replug between CopyFromSerial and C:\Python34>python "rawfile-uploader.py" "COM5" "LOCO201.RAW" I have python2.t installed and pyserial from...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 05:06 PM
    OK, but see earlier posts today, I have installed python2.7 this morning and all seem ok from Python point of view regards the previous 3.4 problems, but 2.7 is now crashing my PC when the Python script runs..... I...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 02:41 PM
    I commented out the "ser.write" statement at the bottom of the script, and put in a print("b") for each byte read and a print("x") just before the f.close() and all this worked....it printed out a long list of "b"...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 11:40 AM
    If I run the CMD line putting in COM5 and teensy unplugged it says it cannot find it..OK If I run the CDM line putting in COM1 which is a physical 9 pin rs232 port on PC that teensy is not connected to the script runs...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-16-2018, 08:58 AM
    Thanks for all the info....... I decided I would uninstall the 3,4 and install the Python 2.7.....windows x86 exe version....there are an awful lot of versions to pick from when I went looking for the pyserial....ther...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-15-2018, 10:07 PM
    Thanks for reply......I would need to read up a bit on Python......and setup all the environment etc... as a quick trial, at command prompt went to folder of setup.py and ran C:\python34\python setup.py install and it...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-15-2018, 09:05 PM
    I am not familiar with Python........but on googling the error I this thats what I have to do......I have downloaded the pyserial-master....it mentions install with pip install pyserial but that doesnt work.....I...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-15-2018, 08:06 PM
    Thanks for the command procedure for CopyfromSerial.......but still cannot get it to work Below is the errors from the CMD prompt window when I run the python bit... ...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-15-2018, 10:47 AM
    Yes, that works, sounds like Stationary Engine Ok, 16500+ samples, loud bits sounded a bit harsh, i see they are up at 255 and you have analogResolution(8) normally OK, I changed it to analogResolution(12), I think it...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-14-2018, 11:10 PM
    Some one of the config should tell you Cannot access SPI flash chip.......they both cant work....???? the 14852 is size of file same as mine..... are you getting sound from DAC with another sketch..????? This...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-14-2018, 08:42 PM
    Still problems...???....When you attempt to play it with the above sketch does it list the file in the monitor terminal as...... Playing file: 1 773866 6720512 OR does it say "Cannot access SPI Flash chip" To...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-14-2018, 02:25 PM
    I think the delay as the feedback in your sketch is causing it to oscillate...????? there is a high frequency which look random ontop of the wave and doesn't cause much noise if the gain of the mixer is low.....I...
    11 replies | 241 view(s)
  • Teenfor3's Avatar
    04-14-2018, 11:32 AM
    Yes the sketch runs for me, OK, I am not sure if it is distortion or just gain of signal too high when the signals feedback signal is looped. I run it open loop as well and you can see the wave forms from each delayed...
    11 replies | 241 view(s)
  • Teenfor3's Avatar
    04-14-2018, 01:00 AM
    Yes all files playing...... files .RAW and files.TRW Are you sure your files are on spiflash......can you list them and see them When playing this sketch below open the terminal teensymonitor and you should see...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-13-2018, 09:18 PM
    I am a wee bit confused about the header info....50 4B 03 04 14 00 00 00 08 00....etc "The common header for your files seems to be : 50 4B 03 04 14 00 00 00 08 00 ? " don't know what this is , what files is it in...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-13-2018, 06:58 PM
    I am not sure what you want out of this, but you have it printing "Siren" so I assume a siren sound sound. I was only trying it on a 3.2 and I dont have an I2S amp connected so changed it to DAC and modified or...
    11 replies | 241 view(s)
  • Teenfor3's Avatar
    04-13-2018, 11:44 AM
    Yes, OK, Thanks, I can now understand the small header in the trw files now...... The filesaw1.trw is a small sawtooth waveform of 441 samples at 16 bit 44.1k I created in Audaticy just a tone. So the header first...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-13-2018, 11:15 AM
    Hi, Projectitis, the code you posted would not run on its own and over complicated to investigate a simple problem. All DAC needs is integers...???? I thought from the previous posts you were trying to find out in...
    15 replies | 244 view(s)
  • Teenfor3's Avatar
    04-12-2018, 08:39 PM
    If you are sending the samples for an audio sound signal to the DAC it should come out as an audio sound.....no crunching. Does your portable speakers have standard Audioin/Linein jack...??....If you plug the speakers...
    15 replies | 244 view(s)
  • Teenfor3's Avatar
    04-12-2018, 12:45 PM
    yes, but the output should not be "crunchy".....best way would be to listen on an amplified speaker that is known to be working first before designing a new one. that way you would know the DAC output is OK to start with
    15 replies | 244 view(s)
  • Teenfor3's Avatar
    04-12-2018, 10:57 AM
    OK......now we are actually finding out what you are trying to do.......?? You will be using something like ..... analogWrite(A14, value)......the value need to be no more than 12 bits........0 to 4096.......for max...
    15 replies | 244 view(s)
  • Teenfor3's Avatar
    04-12-2018, 10:26 AM
    If you are a coder......I assume you are using the audio library......pass the output via mixer to DAC and set the gain low 0.1 or 0.2. It takes very little amplitude to hear the signals clearly......your problem is...
    15 replies | 244 view(s)
  • Teenfor3's Avatar
    04-11-2018, 11:58 PM
    Yes, OK, I had been using the -16 option, but the problem was the exe file would not run.....it told me not a windows 32 program. I downloaded again from the link you gave above and same thing......I am using an...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-11-2018, 11:00 AM
    I dont have a working version of wav2trw exe file. I downloaded from a link given in one of the earlier post on this thread, but when I run it in dos window or batchfile it tells me its not a valid windows32...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-11-2018, 12:35 AM
    Thanks Paul for the reply Sorry I didn't post any code but I was really only wanting some instructions how it worked, I didnt have any real application, just trying it in any sound sketch. I have been playing with it...
    3 replies | 110 view(s)
  • Teenfor3's Avatar
    04-10-2018, 08:48 PM
    I don't recognise the format of your raw file, is this your trw file..??... looking at the values mix of 255 and near zeros, looks like a square wave train of pulses....seems odd..? not like anything produced by...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-10-2018, 12:13 AM
    I said I would get some spiflash to try this out, I have a project that I need more memory for as well.....so it arrived today and tried it out... ...and yes a RAW wav file....that is a ordinary WAV file with no...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-09-2018, 01:01 AM
    I can get fade to work with continuos synth sounds as playing a waveform The code below would just give 2 second of sound followed by 1 second of silence repeated and faded in and out for 100 ms ...
    3 replies | 110 view(s)
  • Teenfor3's Avatar
    04-08-2018, 10:09 AM
    can you work in reverse...?? Send an image to the PC screen from within the PC prog, Send a signal from the PC to teensy via USB either immediately before or immediately after sending image to screen Teensy can be...
    10 replies | 291 view(s)
  • Teenfor3's Avatar
    04-07-2018, 09:52 PM
    Teenfor3 replied to a thread New Forum Look in General Discussion
    Thanks for replies It is all back to normal and I dont think I did anything to correct it..?? I had seen it change a few days ago....and just wondered I will try the options above if it happens again Thanks
    4 replies | 256 view(s)
  • Teenfor3's Avatar
    04-07-2018, 09:09 PM
    Has the Forum got a new look, or an old look..??... or have I clicked on something that means I am going to some other version or bulletin board instead....it says powered by Bulletin...?? I am windows XP...
    4 replies | 256 view(s)
  • Teenfor3's Avatar
    04-07-2018, 08:54 PM
    I wonder could someone help with example for how to use AudioEffect Fade.....fadeIn and fadeOut I set it up as per the GUI tools etc with connections etc...
    3 replies | 110 view(s)
  • Teenfor3's Avatar
    04-06-2018, 01:10 PM
    Are you sure you have wav2trw working...???? See the link below......Frank B says itis outdated....???? https://forum.pjrc.com/threads/40599-Not-understanding-wav2trw-sketch ....................................
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-06-2018, 12:12 AM
    I dont actually have any SPI Flash to try except an old Atmel Dataflash.....and cannot see how to send a file to it as a named file, I can send audio data bytes to it and play back the bytes to dac but just using...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-04-2018, 11:56 PM
    Yes output to DAC should definitely work. How are you getting output now...is it to LINEOUT ????. You only show connection from playFlashRaw1 to dac1. If you still have the SGTL5000 Audio adaptor board connected see...
    90 replies | 3643 view(s)
  • Teenfor3's Avatar
    04-04-2018, 11:06 AM
    ........from above........and that is probably the bits of code that are giving you trouble...........and you need to use AudioNoInterrupts etc to make sure your code does not upset the timing of things
    2 replies | 119 view(s)
  • Teenfor3's Avatar
    04-04-2018, 10:56 AM
    Maybe I am missing something here but the code I get from the GUI for your config is as below....... This code on its own wont do anything, you need to post what you are telling it to do, and that is probably the bits...
    2 replies | 119 view(s)
  • Teenfor3's Avatar
    04-03-2018, 03:13 PM
    Probably not much simpler than this. This is a sample from Audacity export sample data as text from wav file and play in teensy using interval timer. the rate in the sketch is varied by counting down a timer but could...
    16 replies | 805 view(s)
  • Teenfor3's Avatar
    04-01-2018, 08:31 PM
    basementmedia wrote "The samples, i want to use are still in 16 bit stereo 44100 Hz Wav Format." If this is standard RIFF Microsoft signed 16 bit stereo 44100 .WAV file then the audio data in the file will be Little...
    2 replies | 106 view(s)
  • Teenfor3's Avatar
    04-01-2018, 11:57 AM
    Tiran wrote " I am curious if I can do a pitch change of a single sample file and adjust the pitch as desired." Yes, Arbitrary Waveform, play sample at what ever frequency, duration and amplitude you want, see the...
    16 replies | 805 view(s)
  • Teenfor3's Avatar
    03-15-2018, 11:23 AM
    Don't know much about expanders but the W25Q128FV has option 8.2.6 Read Data 03h in the datasheet to read continuously from memory location and can use variable clock to control rate so maybe this could be...
    16 replies | 805 view(s)
  • Teenfor3's Avatar
    03-15-2018, 12:49 AM
    waveform1.begin(1.0, noteFreqs, WAVEFORM_SAWTOOTH); waveform1.amplitude(1.0);.............if amplitude is constant only needs called once....but can be in loop if need it changed Waveform1 only needs to "begin once"...
    2 replies | 183 view(s)
  • Teenfor3's Avatar
    03-14-2018, 08:41 PM
    Your first post showed waveforms of what looks like 1 cycle sample, so play it at what ever pitch you want using the procs in my earlier post. Wavforms like this can be extracted from any wav file sample. You would...
    16 replies | 805 view(s)
  • Teenfor3's Avatar
    03-13-2018, 07:44 PM
    Read the GUI synth section,some extracts copied below.... begin(waveform); Configure the waveform type to create. begin(level, frequency, waveform); Output a waveform, and set the amplitude and frequency. ...
    16 replies | 805 view(s)
  • Teenfor3's Avatar
    02-19-2018, 05:10 PM
    where do you want to save it...?? If to PC....then as WMXZ says .....I2S in and USB out to PC and save it as wav file etc using Audacity etc for playback later OR I2S in and DAC out to Linein on PC and save to audio...
    55 replies | 9067 view(s)
No More Results
About Teenfor3

Basic Information

Statistics


Total Posts
Total Posts
232
Posts Per Day
0.16
Last Post
Sound for model railroading scale 1/32 Today 04:40 PM
General Information
Last Activity
Today 05:07 PM
Join Date
04-15-2014