See: http://www.google.com/search?q=tinni...ddress&ie=&oe=
I tried the following modification in custom-convert.conf:
It gives me an error when I try to play a flac file. Any suggestions on how to make this work? Thanks.Code:flc flc * * # runs ALL flc through SoX to notch out one designated octave for tinnitus treatment # in this example the octave is centered on 5.8k # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C0 sinc 8.7k-4.35k -
Results 1 to 10 of 12
Thread: Tinnitus Notched Music Therapy
-
2012-03-14, 15:38 #1
Tinnitus Notched Music Therapy
-
2012-03-23, 08:35 #2Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,072
Did you ever figure this out?
-
2012-03-23, 12:07 #3
No, I did not. I don't yet have enought expertise in SoX commandline to figure it out, but I may have some time next week to try again.
I'm not currently home with my Squeezebox, but this would be the next thing I'd try:
Small changes but may work based on other custom-convert.conf examples I've seen since. If you try it, let me know what happens. Thanks.Code:flc flc * * # runs ALL flc through SoX to notch out one designated octave for tinnitus treatment # in this example the octave is centered on 5.8k # FT:{START=--skip=%t}U:{END=--until=%v} [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 sinc 8.7k-4.35k -Last edited by Apesbrain; 2012-03-23 at 12:26.
-
2012-03-24, 19:23 #4Senior Member
- Join Date
- Jul 2005
- Location
- Vancouver, Canada
- Posts
- 125
This sounds very interesting.I read some of the material on the link you have posted and will dig deeper. As a tinnitus sufferer this sounds encouraging. I use a Tact room correction system and I'm wondering if I could build a target curve that would achieve the notch they refer to.
I'll post back after some more reading and research.
-
2012-03-24, 22:16 #5
I'm curious. How are folks determining the frequency of their tinnitus?
I'm not sure Apesbrain's 2nd custom-convert.conf is having the desired effect. After I installed ia32-libs, I did get LMS' sox to work. But these are the actual running processes for the transcoding:
I don't see the 'sinc 8.7k-4.35k' in there anywhere.Code:4955 ? S 0:00 /bin/bash /usr/sbin/lms_safe /usr/share/lms/server/slimserver.pl --prefsdir /var/lib/lms/prefs --logdir /var/log/lms/ --cachedir /var/lib/lms/cache --charset=utf8 4957 ? S 0:10 /usr/bin/perl /usr/share/lms/server/slimserver.pl --prefsdir /var/lib/lms/prefs --logdir /var/log/lms/ --cachedir /var/lib/lms/cache --charset=utf8 --norestart 4968 ? S 0:00 /usr/share/lms/server/Bin/i386-linux/flac -dcs --until=1:39.93 -- /mnt/Media/Music/b_Renaissance/Brumel, A/Missa Et ecce terrae motus a 12 voci & Sequentia Dies irae - Huelgas Ensemble, Paul Van Nevel.flac 4969 ? S 0:01 /usr/share/lms/server/Bin/i386-linux/sox -q -t wav - -t flac -C 0 -
-
2012-03-24, 22:32 #6Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,072
This works. I couldn't get it using flac to decode. This means that START/END aren't implemented, so you can't play multi-track FLAC files with CUE sheets. Also, I'm not certain that RESAMPLE works, as I didn't test it with anything that required it.
Code:flc flc * * # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} [sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
-
2012-03-25, 08:36 #7
A little bit of googling gave me this.
-
2012-03-27, 05:31 #8
Thanks, everyone, for the replies. I tried both suggested conversion commands below and my FLAC files played. It's not clear to me upon listening, however, that the desired outcome of attenuating a target octave is actually happening.
Code:flc flc * * # runs ALL flc through SoX to notch out one designated octave for tinnitus treatment # in this example the octave is centered on 5.8k using sinc function # FT:{START=--skip=%t}U:{END=--until=%v} [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 sinc 8.7k-4.35k -I recorded some output into Audacity and ran it through a spectrum analysis but it was not obvious that frequencies were being notched out. I even tried a wider "sinc" range and got the same results.Code:flc flc * * # runs ALL flc through SoX to notch out one designated octave for tinnitus treatment # in this example the octave is centered on 5.8k using sinc function # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} [sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
My custom-convert.conf file is in the same folder as my convert.conf file. Please let me know if that is not the correct location. I've been restarting LMS after any change in the file.
Can someone confirm this is working?
-
2012-03-27, 07:40 #9Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,072
The first thing I'd do is place that comment above the rule. Since the commmented second line is part of the rule, it would be safer.
It may be a little difficult to hear using 8.7k-4.35k. To make it very obvious, try something like 9.7k-1.35k.Code:# Run all flac through SoX to notch out one designated octave for tinnitus # treatment. In this example the octave is centered on 5.8kHz. flc flc * * # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} [sox] -q -t flac $FILE$ -t flac -C 0 $RESAMPLE$ - sinc 8.7k-4.35k
-
2012-03-27, 11:42 #10

Reply With Quote

