Git Product home page Git Product logo

wt-webradio's Introduction

wt-webradio An Phantom Voices

A project for Werkplaats Typografie in Arnhem.

About

Structure of this site

There's a page per month. A month needs to have an active class in the corresponding month and a p5 js file. The content container holds a left and a right side.

Every month also has a js file for the pixilation of the images. For the "anphantomvoices.php" page I have added a special button for the play and the pause in the top bar.

Changing the images

In the img folder please put images. Then take the name of the image and replace it in the respective .js file. For example: if you'd like to change the image for March, you can simply drag and drop a file in that image folder "/img". Then in the "/js" folder you can change the path or file name in march.js.

Audio direction

The audio of an phantom voices resides in the /audio folder. It is organised in months. In the folder js/p5 you can find a js file with the month. In there you can add audio and a name. The audio needs a path and the name is needed for the switches ticker.

In the html file > .topbar you can place the path of audio file and also the name.

To add a new audio entry in left content, all you need to do is add a <li> with the data attributes. You can see examples in the other html files.

An example:

<li data-panel="entry-a">
    <a class="amplitude-play-pause amplitude-repeat-song" data-amplitude-song-info="name" data-amplitude-song-index="0"></a>
    <div class="song_descr"></div>
</li>

data-panel="entry-a" => is used to toggle the content and description. Plus it is needed for mobile.

data-amplitude-song-info="name" => imports the name from the .js file. If you choose to put the name/title in the <a> manually that's possible, but please take out data-amplitude-song-info="name" (<a class="amplitude-play-pause amplitude-repeat-song" data-amplitude-song-index="0">THE โ€œFIG.โ€ OF WOMAN AS THE WHITE NOISE OF HISTORY</a>)

data-amplitude-song-index="0" this is the index number of the file. Counting starts with 0. So the first audio session always has an index of 0.

Removing the counter.

In the pages "april.php", "may.php" and "june.php", I've commented the code that is used to create the two columns. You can simply remove the <div class="counter"></div> and proceed to fill the two columns. I suggest copying a previous month. Don't forget to add the audio for the respective months.

Sources

The base template for this is based off my blank static template

We've used P5.js from Lauren Lee McCarthy and also amplitude.js by 52idimensions.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.