Go to advanced search

by hitsware
Thu Jun 07, 2018 9:48 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

Yes !
Thanks again.
I had dismissed your 'try' and 'finally'
as simply comments ............

from your link:

Not Found
The requested URL /forums/docs.python.org/3/tutorial/errors.html was not found on this server.
Apache/2.4.25 (Debian) Server at www.raspberrypi.org Port 80
by hitsware
Thu Jun 07, 2018 8:42 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

I use infinite loops so I can jam along as long as I want.
When I click the IDE break button I get a keyboard-interupt
error. Since the program spends most of the time with notes
on this leaves them hanging.
Is there no ' on break do whatever' ? or somesuch ?
by hitsware
Thu Jun 07, 2018 4:34 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

#leave open terminal "timidity -iA" #sudo modprobe snd-virmidi #aconnect 20:0 128:0 import math import time fo=open("/dev/snd/midiC1D0","wb",buffering=0) mn = [1,];c=[8,6,9,6];m=[2,4,3,4] for x in range(1,1024): mm=(round((12*(math.log((x*11/55),2)))+21)) mn.append(mm) while True: for i in range(0,...
by hitsware
Mon Jun 04, 2018 10:54 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

THANK YOU ! Paeryn ! (and all) I'll need a ditty for full check, but @least I got sound going. import time midinote_on=[144,60,127] midinote_off=[144,60,0] fo=open("/dev/snd/midiC1D0","wb",buffering=0) while True: fo.write(bytes(midinote_on)) time.sleep(0.1) fo.write(bytes(midinote_off)) time.sleep(...
by hitsware
Mon Jun 04, 2018 9:18 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

That depends on the synth.
This one (Timidity) gives a nice,
loud, clean tone with just the pulse .....
Anyways same problem with delay .
by hitsware
Mon Jun 04, 2018 6:25 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

That makes sense BUT For some reason ? If I do this : #leave open terminal "timidity -iA" #sudo modprobe snd-virmidi #aconnect 20:0 128:0 import time x = 0 midinote=[144,60,127,144,60,0] fo=open("/dev/snd/midiC1D0","wb") while x < 1: fo.write (bytes(midinote)) time.sleep(0.5) It doesn't work at all....
by hitsware
Mon Jun 04, 2018 5:20 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Re: Thonny too slow for music ?

Something to do with Linux or Arm ?
Or Alsa ?
I have used BASIC with Windows for this
type work for years with no problem.......
I'll try in the terminal.....Thank You !
by hitsware
Mon Jun 04, 2018 3:38 pm
Forum: Python
Topic: Thonny too slow for music ?
Replies: 13
Views: 775

Thonny too slow for music ?

#leave open terminal "timidity -iA" #sudo modprobe snd-virmidi #aconnect 20:0 128:0 import time x = 0 midinote=[144,60,127,144,60,0] while x < 1: fo=open("/dev/snd/midiC1D0","wb") fo.write (bytes(midinote)) time.sleep(0.5) The above should give a evenly timed sequence of notes. It does not. Not onl...
by hitsware
Sun Jun 03, 2018 4:03 pm
Forum: Troubleshooting
Topic: Timing of Python (and other scripts)
Replies: 0
Views: 96

Timing of Python (and other scripts)

#leave open terminal "timidity -iA" #sudo modprobe snd-virmidi #aconnect 20:0 128:0 #using Thonny import time x = 0 midion=[144,60,127] midioff=[144,60,0] while x < 1: fo=open("/dev/snd/midiC1D0","wb") fo.write (bytes(midion)) fo.write (bytes(midioff)) time.sleep(0.5) The code above should output m...
by hitsware
Fri Jun 01, 2018 10:10 pm
Forum: Beginners
Topic: Have lost SDC recgnition
Replies: 2
Views: 257

Re: Have lost SDC recgnition

I think I finally achieved a bad SDC.
GParted wouldn't do anything.
The partitions both read mounted when
read (in USB adaptor) on second RPi.
It was only the one I had been using
for many programming experiments
so ??????
Anyways trashed it and made fresh one.
by hitsware
Thu May 31, 2018 11:09 pm
Forum: Beginners
Topic: Have lost SDC recgnition
Replies: 2
Views: 257

Have lost SDC recgnition

I have 2 RPi 3 B
Latest Stretch image
I have been able to use either to edit the SDC of the other.
Now neither recognizes the card of the other.
A third older card will recognize the latest cards, but not open them.
I have removed a few apps ..........
Any insight ?
by hitsware
Wed May 16, 2018 9:40 pm
Forum: Graphics, sound and multimedia
Topic: Write to Amsynth from Basic
Replies: 2
Views: 400

Write to Amsynth from Basic

Write to Amsynth (or any other) from Basic256 (or any other) I want to send Midi event messages from (preferably) some dialect of Basic to Amsynth or Zynaddsubfx or Timidity or ? What (I think?) I need is an address for the device as if it were a file to be written to............????? Thank You, ......
by hitsware
Sat Apr 21, 2018 4:26 pm
Forum: Beginners
Topic: ' places ' on file manager menu
Replies: 4
Views: 440

Re: ' places ' on file manager menu

Thank You !
Now I remember going through that before .
by hitsware
Fri Apr 20, 2018 10:38 pm
Forum: Beginners
Topic: ' places ' on file manager menu
Replies: 4
Views: 440

' places ' on file manager menu

I just rebooted after update-upgrade and now 'places' (vs. 'directory tree')
option is gone from top of file manager menu.......now in directory tree ....
How can I either get options back or go to places mode ?
by hitsware
Sun Dec 03, 2017 8:23 pm
Forum: Beginners
Topic: screen blanks during install
Replies: 0
Views: 174

screen blanks during install

While installing Raspbian to a SD,
the screen often blanks while the process
is still working....
This is not the screen saver, since the system
is not yet running.....
Raspbian still loads, but it's awkward to have
to leave it without knowing when it finishes.
by hitsware
Sun Dec 03, 2017 2:42 pm
Forum: Beginners
Topic: Noobs vs. dd .img install
Replies: 6
Views: 663

Re: Noobs vs. dd .img install

Got it ! ........... Thank You !
by hitsware
Sun Dec 03, 2017 1:46 am
Forum: Beginners
Topic: Noobs vs. dd .img install
Replies: 6
Views: 663

Re: Noobs vs. dd .img install

" 1.2.5 " is what i want
Noobs version installs
something else ( without version# )
by hitsware
Sat Dec 02, 2017 11:31 pm
Forum: Beginners
Topic: Noobs vs. dd .img install
Replies: 6
Views: 663

Re: Noobs vs. dd .img install

Did nothing to the Noobs version.
Changed the .img version to the same as Noobs.
Unfortunately I wanted the filemanager from the .img version
by hitsware
Sat Dec 02, 2017 10:30 pm
Forum: Beginners
Topic: Noobs vs. dd .img install
Replies: 6
Views: 663

Noobs vs. dd .img install

Should there be any difference in the outcome ?
I tried the Noobs version of Stretch Lite and I got
a different version of file manager than using the
.img.............
THOUGH !
The system response seems somewhat faster ?
by hitsware
Tue Nov 14, 2017 5:41 pm
Forum: Graphics, sound and multimedia
Topic: Improving audio quality
Replies: 4
Views: 1824

Re: Improving audio quality

If your ' phatdac ' has anywhere near the affect
as a ' hifiberry ' , you will jump up for happy !
by hitsware
Fri Nov 10, 2017 5:12 pm
Forum: Graphics, sound and multimedia
Topic: Built in Stretch mediaplayer
Replies: 9
Views: 3588

Re: Built in Stretch mediaplayer

To hitsware KVMR is an audio player for a California-based radio station which plays a lot of Reggae. It will not play videos. If you want to listen to it through the Raspberry Pi open up the Terminal (LXTerminal) and type in omxplayer http://live.kvmr.org:8000/aac96 and hit Enter. You could try no...
by hitsware
Fri Nov 10, 2017 12:34 am
Forum: Graphics, sound and multimedia
Topic: Built in Stretch mediaplayer
Replies: 9
Views: 3588

Re: Built in Stretch mediaplayer

> Are you really using a Raspberry Pi to play video files using omxplayer? Back to my original question : When I go here: http://www.kvmr.org/player/ and use the graphic player ...... ( which many stations have a version of ) What media player does stock Raspbian use to play the stream ? I see no in...
by hitsware
Thu Nov 09, 2017 10:19 pm
Forum: Graphics, sound and multimedia
Topic: Built in Stretch mediaplayer
Replies: 9
Views: 3588

Re: Built in Stretch mediaplayer

When I go here :
http://www.kvmr.org/player/
and play the ' player '
does that invoke omxplayer ?
by hitsware
Thu Nov 09, 2017 5:38 pm
Forum: Graphics, sound and multimedia
Topic: Built in Stretch mediaplayer
Replies: 9
Views: 3588

Built in Stretch mediaplayer

" Out of the box " what mediaplayer does Stretch use ?
For radio streams ?
My radio streams play, but not MP3's .
Omxplayer opens the terminal but no sound.
VLC or AVPlay work.
I would like to have only 1 player do all.......
So if I could determine what plays the radio streams
and use it for MP3's ?

Go to advanced search