|
Post by vovchik on Jul 3, 2014 18:34:43 GMT 1
Dear Alex,
GREAT! It works perfectly. Many thanks. I can now do my parsing and dynamic menu creation bits for the 100+ other sounds in various categories. Do you have the sound working?
With kind regards, vovchik
|
|
|
Post by alexfish on Jul 3, 2014 18:43:39 GMT 1
says it found the method
but not connected to the sound system as in speakers at the moment / kids , they even got my ear phones
think there will be a change coming ... THELMaaaaaaaaaaaaaaaaaaaaaaaa.
will test very soon.
BR Alex
|
|
|
Post by vovchik on Jul 3, 2014 20:42:36 GMT 1
Dear Alex, I am certain you will eventually get a chance to try out those earphones, so have patience. The spot where that throbber is (now a place-holder) is where I want a real evas pulsar. It will look great and provide a nice and tiny bit of hypnotic dynamism when the sound is playing. With kind regards, vovchik
|
|
|
Post by alexfish on Jul 3, 2014 22:37:41 GMT 1
Hi Vovchik
just rounding up on couple of these Data corruptions on the evas canvas objects , now know why the use get object by name, looking to apply a fix for that one . think hope to have reasonable Stability in place
think by tomorrow evening may have a chance to update the requested bits + add the bit which will animate the giff, should be easy to add them hug style.. I think say he ,I think ,cos sometimes it goes wrong .
looks like need to get new earphones , dam thing's don't plug into the micro sized jack socket , something else these new boxes lack a proper jack.. cheap skates . think one of these day we will be buying a box that only contains fresh air and the actual biz will be an add on.. extra.
Have fun Alex
|
|
|
Post by vovchik on Jul 3, 2014 23:09:50 GMT 1
Dear Alex, I think that is what the MacAir is all about. In any case, the old pulsar code looked like this and that would be dandy: '@ INCLUDES always have these INCLUDE INIT : INCLUDE WINDOW : INCLUDE DISPLAY : INCLUDE ATTACH : INCLUDE CALLBACK : INCLUDE QUIT INCLUDE PULSAR INCLUDE PULSE INCLUDE BUTTON
SUB START_STOP() PRINT "pulse" pulse=NOT(pulse) PULSE(pulsy,pulse) END SUB
INIT win = WINDOW("Pulsar", 300, 300) pulsy = PULSAR(win, 150, 30) ATTACH(win, pulsy, 50, 50) but = BUTTON(win, "toggle pulse", 150, 30) ATTACH(win, but, 50, 150) CALLBACK(but, "clicked", START_STOP)
DISPLAY
With kind regards, vovchik
|
|
|
Post by alexfish on Jul 4, 2014 19:05:54 GMT 1
Hi All
HUG ELEMENTARY DAILY lib hug_elm.bac . now uploaded to POST #1
HAVE FUN +
BR
Alex
|
|
|
Post by vovchik on Jul 4, 2014 20:59:33 GMT 1
Dear Alex, Thanks a million. Please have a look at zensound now. I have added all the sound files and also fixed up the menus and added the PULSAR. The only thing really wrong - apart from some badly formatted info text - is that, under the Doses category, under Recreation, I have too many entries and you don't see them all. I could break up those entries into Part1 and Part2 etc., or is there a more clever solution to get more than one colum in a submenu? Again, many thanks. It's great and fun to use. And the results look splendid, too. With kind regards, vovchik Attachments:zensound1.tar.gz (295.21 KB)
|
|
|
Post by alexfish on Jul 5, 2014 9:55:01 GMT 1
Hi Vovchik
the amount of bits in menu look over burdened , will look at what we got in the lib as regards the inwin and list
thinking around the lines main/sub select on sub menu update list in a inwin ,have not don much with the inwin up to now , hence will try sum bits and see what is possible.
apart from the menu issue ZenSound is looking good , hopeful will have new headphones later on to day
if could get this working on a Mac with the Cocoa interface , I be hearing money jingle.
BR Alex
|
|
|
Post by vovchik on Jul 5, 2014 10:28:34 GMT 1
Dear Alex, Thanks - the long menus do need some work in the Recreation category and maybe we should try something else to display all those entries more elegantly. Yes, Cocoa, IOS and Android and that nice jingling sound ... I think we might have something here. With kind regards, vovchik
|
|
|
Post by alexfish on Jul 5, 2014 11:15:10 GMT 1
Hi Vovchik
Update :
have manage to resolve the win setsize to restrict the window like hug , this will be in next daily now looking for a hide on delete , since if click the win delete icon , it just vanish , then when delete main window , one can still see the app in system monitor.
in existing lib one can text the value to the slider so it can be seen all the time
IE in the ZenSound Demo
HTH
hslide1 = HSLIDER(100, 25, 0, 100, 1) ATTACH(win, hslide1, 5, 475) SETPROPERTY$(hslide1, "tool_tip", "Set audio output level", 0) SET(hslide1, 75) TEXT(hslide1,"75")
the callback
' ------------------ SUB SET_VOLUME() ' ------------------ LOCAL myvol myvol = GET(hslide1) TEXT(hslide1,STR$(myvol)) PRINT "PCM Volume level: ", myvol IF mix_cmd = 1 THEN SYSTEM "amixer -c 0 sset PCM,0 " & STR$(myvol) & "% > /dev/null 2>&1&" END IF END SUB
|
|
|
Post by vovchik on Jul 5, 2014 12:32:47 GMT 1
Dear Alex, Incorporated..thanks. I also added the name of the playing sequence to the status bar at the bottom. Here is the revised source. With kind regards, vovchik Attachments:zensound1.bac.tar.gz (4.78 KB)
|
|
|
Post by alexfish on Jul 5, 2014 12:43:13 GMT 1
Hi Vovchik
Think possible delay is required some where, if I close the main window before a play then the app is still active but not seen , now from what I read in the docs , corrected sequece for show window is just before the main loop
so here looking to see if can be done hug style , will have to wait for a result
in mean time until daily update can test this code on the sub window , one should have to use the CLOSE button on the Help Window if working on your sys then will update this into the SETPROPERTY$.
BR Alex
about = WINDOW("ZenSound About" & version$, win_w, win_h)
elm_win_autodel_set(properties[about].sig_widget, FALSE)
|
|
|
Post by vovchik on Jul 5, 2014 13:10:29 GMT 1
Dear Alex,
That seems to work. I get the following if the main win is closed and the sequence is playing:
CRI<7198>:evas_main main.c:97 evas_debug_magic_null() Input object is zero'ed out (maybe a freed object or zero-filled RAM)!
so it would be nice to have the WM close app button (in the WM decoration taskbar) execute a proper elm shutdown or a specific user CALLBACK for a clean quit, which, in Zensound, also kills any running sbagen.
With kind regards, vovchik
|
|
|
Post by alexfish on Jul 5, 2014 13:40:23 GMT 1
Hi Vovchik
see what U mean, but on my system it not consistent, if running for a while then get no error , but not actually sure what the coarse is. need to look further into these delete-events.
if U notice at times can still use that win app close icon on the help window , then next not ,that is when the app throws the error , can try the same delete event false in the show help callback , see what happens.
BR Alex
|
|
|
Post by vovchik on Jul 5, 2014 14:15:41 GMT 1
Dear Alex,
I set the format of the hslider this way:
hslide1 = HSLIDER(100, 25, 0, 100, 1) ATTACH(win, hslide1, 5, 475) SETPROPERTY$(hslide1, "tool_tip", "Set audio output level", 0) SET(hslide1, 75) TEXT(hslide1, "75") CALLBACK(hslide1, SET_VOLUME) ' vov - change format for slider data elm_slider_indicator_format_set(properties[hslide1].sig_widget, "%1.0f")
It works, so it should probably be included in the slider SETPROPERTY$.
With kind regards, vovchik
|
|