Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1] 2   Go Down

Author Topic: Major scientific breakthrough in Wales!  (Read 5145 times)

0 Members and 1 Guest are viewing this topic.

rees

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 5055
  • Windjammer
    • Wesson Accordions
Major scientific breakthrough in Wales!
« on: February 26, 2013, 02:00:50 PM »

I've somehow managed to chisel a music player into the code on my website (courtesy of Harriet Bartlett - cheers H;-)  )
There is now funky sound sample of one of the instruments (big button, says LISTEN, can't miss it) embedded therein.

While it all works from this end, I'm not sure if it's actually "out there"

Have a listen and let me know: www.melodeons.com

PS: If anyone knows how I can get it to stay on the main page while the music is playing, I'd be most grateful for your help.
Logged
Rees Wesson (accordion builder and mechanic)
Gungrog, Welshpool, Wales, UK
www.melodeons.com

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Major scientific breakthrough in Wales!
« Reply #1 on: February 26, 2013, 02:11:44 PM »

You have electricity in Wales  ;)

rees

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 5055
  • Windjammer
    • Wesson Accordions
Re: Major scientific breakthrough in Wales!
« Reply #2 on: February 26, 2013, 02:15:46 PM »

don't start!
Logged
Rees Wesson (accordion builder and mechanic)
Gungrog, Welshpool, Wales, UK
www.melodeons.com

Adam-T

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1789
  • Hohner Corso
Re: Major scientific breakthrough in Wales!
« Reply #3 on: February 26, 2013, 02:20:35 PM »

You have electricity in Wales  ;)

You don`t think they clip the sheep by hand do you ?  ;D
Logged
Q: How do you cure MAD?
A: Buy more Boxes

Rob2Hook

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2278
  • Castagnaris, Hohners & Baffetti
Re: Major scientific breakthrough in Wales!
« Reply #4 on: February 26, 2013, 02:21:23 PM »

Works even for a Luddite like me!

Rob
Logged

Andy Simpson

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 938
Re: Major scientific breakthrough in Wales!
« Reply #5 on: February 26, 2013, 02:27:33 PM »

Works for me, opens in iTunes...
Logged

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Major scientific breakthrough in Wales!
« Reply #6 on: February 26, 2013, 02:37:23 PM »

Technically that's a simple link to an audio file, not embedding. That's why it doesn't play "on the page". How the audio file is dealt with is dependent upon the settings on the web browser.

eg. of the different web browsers I use, when I click on the link:

- one plays the file itself, not giving any other options.
- one gives a series of options including playing or saving the file.
- one downloads the file, shows the binary code and then offers to save it.

The simplest way to embed audio so that it plays on the page rather than simply linking to a file is to use HTML 5 audio tags.

Code: [Select]
<audio controls>
  <source src="my_audio_file.ogg" type="audio/ogg">
  <source src="my_audio_file.mp3" type="audio/mpeg">
</audio>

The reason that you should offer it in both Ogg Vorbis and mp3 formats is the Microsoft does not support Vorbis and because of licensing issues Firefox does not support mp3.

If that fails (ie. the web browser does not support the audio tag), it will do it silently in the browser. It's  best then to offer an alternative for those browsers.

Code: [Select]
<audio controls>
  <source src="my_audio_file.ogg" type="audio/ogg">
  <source src="my_audio_file.mp3" type="audio/mpeg">
<a href="my_audio_file.ogg">Listen here</a>
</audio>

You could offer the mp3 file instead if you insist  :P

If you use Audacity then Ogg Vorbis is one of the output options when exporting a file. It should be an option in other programmes, but I don't know much about those that only run on Windows or OSX.

NB. Someone is bound to pick up on the fact that you probably ought not to do this on an HTML 4 coded page, it's not syntactically correct. However, this particular situation is a rare one in which I wouldn't worry too much about that, and it will work. Ideally you would change the page over to HTML 5 of course.

That OK Anahata?   ;D

edited: for spelling 
« Last Edit: February 26, 2013, 02:41:36 PM by Andrew Wigglesworth »
Logged

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Major scientific breakthrough in Wales!
« Reply #7 on: February 26, 2013, 02:45:03 PM »

Rees, you can PM/Email me if you want any other practical help ... no obligations  8)

rees

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 5055
  • Windjammer
    • Wesson Accordions
Re: Major scientific breakthrough in Wales!
« Reply #8 on: February 26, 2013, 04:07:33 PM »

Thanks Andrew.
Logged
Rees Wesson (accordion builder and mechanic)
Gungrog, Welshpool, Wales, UK
www.melodeons.com

baz parkes

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1894
    • All Blacked Up
Re: Major scientific breakthrough in Wales!
« Reply #9 on: February 26, 2013, 04:52:01 PM »

What Andrew said...honest.... >:E
Logged
On the edge of Cheshire's Golden Triangle, apparently...

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: Major scientific breakthrough in Wales!
« Reply #10 on: February 26, 2013, 04:59:44 PM »

Thanks for the tutorial Andrew... time to update my own websites!

I have been using Goldwave for Windows for yonks. It's not free but I don't think Audacity was around at the time I bought it. It does .ogg.

I remember childhood holidays at my uncle's little dairy farm in Cardiganshire. No electricity - cows milked by hand. Gas lights. I think they had a telephone...

rees

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 5055
  • Windjammer
    • Wesson Accordions
Re: Major scientific breakthrough in Wales!
« Reply #11 on: February 26, 2013, 05:31:03 PM »

Thanks for the tutorial Andrew... time to update my own websites!

I have been using Goldwave for Windows for yonks. It's not free but I don't think Audacity was around at the time I bought it. It does .ogg.

I remember childhood holidays at my uncle's little dairy farm in Cardiganshire. No electricity - cows milked by hand. Gas lights. I think they had a telephone...

We lived in a place like that in Cardiganshire. We did have a phone but it was a party line. Ee, takes me back.

Baz, are you sure?
Logged
Rees Wesson (accordion builder and mechanic)
Gungrog, Welshpool, Wales, UK
www.melodeons.com

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Major scientific breakthrough in Wales!
« Reply #12 on: February 26, 2013, 06:41:39 PM »

The sound clips on http://chrisryall.net/modes/ are about as "built in" as you can get on an HTML4 page, and are a dog's breakfast. Problem is that all the browsers do their own thing, Apple with quite vainglorious independence of mind.

A standard for HTML5 is now stable but won't be a standard until 2015 or so.  I'm trying to use it for the demo sound on Melodeon Explorer, and it is "just markup"  :D but this puts you completely at the mercy of the user's browser. I think Clive is using something clever in Java  for his app project.

Most browsers now have an HTML5, experimental implementation, and this includes video. Problems are that you need both .ogg and .mp3 versions of your sound to cover the pack. Microsoft are particularly awkward and buggy

Have a look at the code for my modes page; you can then autoplay using a parameter. YouTube is another way to do it. Press the share button and take the Embed option. This method even works on Apple kit.  Good luck
Logged
  _       _    _      _ 

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Major scientific breakthrough in Wales!
« Reply #13 on: February 26, 2013, 08:38:19 PM »

The sound clips on http://chrisryall.net/modes/ are about as "built in" as you can get on an HTML4 page, and are a dog's breakfast. Problem is that all the browsers do their own thing, Apple with quite vainglorious independence of mind.

A standard for HTML5 is now stable but won't be a standard until 2015 or so.  I'm trying to use it for the demo sound on Melodeon Explorer, and it is "just markup"  :D but this puts you completely at the mercy of the user's browser. I think Clive is using something clever in Java  for his app project.

Most browsers now have an HTML5, experimental implementation, and this includes video. Problems are that you need both .ogg and .mp3 versions of your sound to cover the pack. Microsoft are particularly awkward and buggy

Have a look at the code for my modes page; you can then autoplay using a parameter. YouTube is another way to do it. Press the share button and take the Embed option. This method even works on Apple kit.  Good luck

Audio on a webpage should be simple to implement. HTML 5 right now is our best hope and in reality far and away the best implementation method right now. All you need is a browser and every graphical web browser I can think of supports it, and that won't be changing.

No need for Java (which Java implementation do you use? Not everyone has Java plugins/runtime installed), no need for Javascript (copy and paste Javascript? Can you really de-bug it when it all goes wrong in certain browsers?), Adobe Flash (proprietary and privacy busting, not included/allowed by certain companies, fast being left behind by other solutions. Adobe Flash is no longer developed for many platforms including mobile ones).

The reason that Microsoft and Apple refuse to support open (free software) audio and video formats (such as Ogg Vorbis, Theora and Webm) is because they hate them, nothing more or less. They could easily implement them, freely and without restrictions to them, but they don't because they don't fit into their world view.

Hasse

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 323
Re: Major scientific breakthrough in Wales!
« Reply #14 on: February 26, 2013, 09:17:52 PM »

I some how thought this was all about Swansea and Michael Laudrup, But this is just as intresting, thanks Andrew!

One little trick to cheat your way round HTML coding problems is to use Firebug and borrow from sites you like or just to fast see how they get around a certain problem, (and then use and redo the coding to fit the site your working on, sometimes an easy and fast way of solving a problem.
Logged
Sweden, Skåne

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Major scientific breakthrough in Wales!
« Reply #15 on: February 26, 2013, 09:58:17 PM »


  Been there too  ;)
Logged
  _       _    _      _ 

Nick Collis Bird

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3785
  • Been squeezing melodeons for over 48 years (badly)
Re: Major scientific breakthrough in Wales!
« Reply #16 on: February 27, 2013, 06:19:39 AM »

You have electricity in Wales  ;)

You don`t think they clip the sheep by hand do you ?  ;D

It's the Wellington boots that worry me.
Logged
Has anyone heard of the song. “ Broken Alarm-clock Blues” ? It starts   â€œI woke up this Afternoon”

OldJack

  • Good talker
  • **
  • Offline Offline
  • Posts: 76
    • Suisun Sailor
Re: Major scientific breakthrough in Wales!
« Reply #17 on: February 27, 2013, 07:10:35 AM »

I've somehow managed to chisel a music player into the code on my website (courtesy of Harriet Bartlett - cheers H;-)  )
There is now funky sound sample of one of the instruments (big button, says LISTEN, can't miss it) embedded therein.

While it all works from this end, I'm not sure if it's actually "out there"

Have a listen and let me know: www.melodeons.com

PS: If anyone knows how I can get it to stay on the main page while the music is playing, I'd be most grateful for your help.


I found it at the very bottom. Sort of expected it to be at the beginning. I like the sound. Nice job -- I think.
Logged

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: Major scientific breakthrough in Wales!
« Reply #18 on: February 27, 2013, 07:13:48 AM »

The simplest way to embed audio so that it plays on the page rather than simply linking to a file is to use HTML 5 audio tags.

Code: [Select]
<audio controls>
  <source src="my_audio_file.ogg" type="audio/ogg">
  <source src="my_audio_file.mp3" type="audio/mpeg">
</audio>

The reason that you should offer it in both Ogg Vorbis and mp3 formats is the Microsoft does not support Vorbis and because of licensing issues Firefox does not support mp3.
Andrew,
I'm interested in what you say about Firefox and mp3 format; I don't think I have a problem using Firefox. I run the Lizzie Dripping website which includes links to audio samples from the website music page. These are in mp3 format and play perfectly fine in the web browsers I have tested: Firefox, Safari, IE, Netscape (remember that one?). I've only ever uploaded mp3 files to the hosting server, not .ogg files.
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

baz parkes

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1894
    • All Blacked Up
Re: Major scientific breakthrough in Wales!
« Reply #19 on: February 27, 2013, 10:54:05 AM »



Baz, are you sure?

Of course...trust me...I plug the minotaurs in....
Logged
On the edge of Cheshire's Golden Triangle, apparently...
Pages: [1] 2   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal