03-22-2011, 02:12 PM | #1 |
Connoisseur
Posts: 61
Karma: 29446
Join Date: Apr 2010
Device: pocketbook 301, pocketbook 603
|
Command line sound apps trouble
Hi. I try use timidity++ for midi in pocketbook pro 603.
no problem to build, but... I see a strange behavior when i only touch screen with stilus misic is played. It seams that PB go to sleep with no events. Does anyone know solution? I use wrapper timidity.app and freepats ---timidity.app------ #!/bin/sh /mnt/ext1/system/bin/timidity $1 >/dev/null 2>&1 & ----------------------- |
03-25-2011, 03:29 AM | #2 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I have no idea if this will work on the PB device, but android devices can use a wake_lock to keep from going into suspend mode. Try bracketing your call to timidity with:
echo test > /sys/power/wake_lock timidity ... echo test > /sys/power/wake_unlock and see if that keeps the system from suspending. Last edited by rkomar; 03-25-2011 at 03:35 AM. Reason: cat -> echo |
03-29-2011, 03:56 PM | #3 | |
Connoisseur
Posts: 61
Karma: 29446
Join Date: Apr 2010
Device: pocketbook 301, pocketbook 603
|
Quote:
P.S. it's pity but I have another trouble midi files with guitar bands (and some other effects) are played with unacceptable quality :-(. (tracks with Bass,Drums and PhythmGuitar seems plays ok) is this gcc options enough for PB 603? gcc -O2 -march=armv6j or maybe reason is low speed filesystem? |
|
03-31-2011, 02:35 AM | #4 | |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
04-02-2011, 12:57 PM | #5 |
Connoisseur
Posts: 61
Karma: 29446
Join Date: Apr 2010
Device: pocketbook 301, pocketbook 603
|
|
04-02-2011, 04:11 PM | #6 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I see. That does look like CPU usage is a big factor. I'm not sure, but I think the floating-point arithmetic is emulated on these devices. The timidity INSTALL file describes some of the compile-time settings that can be configured in timidity.h for reduced CPU usage. Things like FLOAT_T, LOOKUP_HACK, LOOKUP_INTERPOLATION and LOOKUP_SINE can be defined to reduce some of the floating-point calculations. Also, you can disable many CPU-intensive effects on the command-line, and that may sound better than just reducing the sampling frequency.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
exit codes for command line apps | nharrison66 | Calibre | 0 | 02-11-2011 12:53 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
Going completely command-line? | ewiplayer | Calibre | 2 | 11-24-2008 05:15 AM |