Skip to content

Commit

Permalink
modifs from borne
Browse files Browse the repository at this point in the history
  • Loading branch information
raspberry committed Jan 29, 2024
1 parent 5fc587a commit 4f92ed8
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion borne/create_tube.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@
$chords_equiv[$chord] = $midi_tube->getChordEquiv($song_mood,$chords_style,$chord);
$chords_pitch[$chord] = $midi_tube->getChordPitch($chords_equiv[$chord]['step'], $chords_equiv[$chord]['do_alter'], $chords_equiv[$chord]['octave']);
}
$e=fopen('php://stderr','w');

$json = "";

include "song_format.php";
include "json_init.php";

$url = 'http://192.168.1.20:23456/play';

fwrite($e, "avant");
fwrite($e, $json);
$json = json_encode(json_decode($json));

if(json_last_error() > 0){
echo "ERROR in JSON: " . json_last_error_msg();
var_dump($json);
}
fwrite($e, "apres");
fwrite($e, $json);

// use key 'http' even if you send the request to https://...
$options = [
Expand Down
Binary file modified borne/imgs/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_16beat_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_16beat_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_bossa_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_bossa_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_disco_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_disco_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_pop_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/style_pop_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/tempo_108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/tempo_120.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/tempo_140.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified borne/imgs/tempo_95.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions borne/texts_dedicace.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
);

$texts_dedicace = array(
"Et hop, encore un tube composé vite fé, bien fé! Il s’appelle ".$_SESSION['song_title']." et a été écrit spécialement pour ".$_SESSION['user_name'].". J’ai essayé de coller à tes zenvies de chanson ".$humeur[$_SESSION['song_style']].", on écoute? C’est parti!",
"Hello! Espérons, qu’il n’y ait pas de bug ce coup-ci. Si tout va bien, on va pouvoir écouter ".$_SESSION['song_title']." écrite sur les conseils de ".$_SESSION['user_name'].". C’est une belle chanson aux couleurs ".$_SESSION['song_mood_name'].", dans une ambiance ".$humeur[$_SESSION['song_style']].". Pif, paf pouf, allonzi.",
"Hello! La prochaine chanson s’appelle ".$_SESSION['song_title']." et je l’ai composée pour ".$_SESSION['user_name']." qui semblait vouloir une chanson ".$_SESSION['song_mood_name']." sur des notes ".$humeur[$_SESSION['song_style']].". Voyons ce que ça donne, hahaha. Bisous ".$_SESSION['user_name'],
"C’est bon, je suis prêt! Attention, ".$_SESSION['user_name'].", la prochaine est pour toi! Elle s’appelle ".$_SESSION['song_title']." et j’ai mélangé tes souhaits et mes inspirations, sur une musique ".$humeur[$_SESSION['song_style']].". Reste plu qu’à espérer que ça te plaise. 3, 2, 1 go!",
"Cher ".$_SESSION['user_name'].", j’ai travaillé dur pour achever l’écriture de ".$_SESSION['song_title']." tel que tu l’a rêvé. Des notes ".$humeur[$_SESSION['song_style']]." sur un texte qui j’espère te parlera. Voilà. Bien du plaisir. Attention ".$_SESSION['user_name'].", je lance la machine, salut.",
"La prochaine chanson est pour toi ".$_SESSION['user_name']."! Cette chanson est pour toi! Elle s’appelle ".$_SESSION['song_title'].", et je l’ai écrite du mieux que j’ai pu, mais j’étais un peu à la bourre. Ne m’en veux pas si c’est nul. Bisous ".$_SESSION['user_name'],
"C’est pas pour me vanter, mais je pense que la prochaine chanson touche au génie! Je l’ai écrite pour ".$_SESSION['user_name']." et elle s’appelle ".$humeur[$_SESSION['song_style']].". Franchement, je crois que c’est pas mal. ".$_SESSION['user_name'].", accroche-toi!",
"Bon, c’était pas facile, mais j’ai finalement terminé l’écriture de ".$_SESSION['song_title']." spécialement pour ".$_SESSION['user_name'].". Une chanson un peu ".$humeur[$_SESSION['song_style']]." qui j’espère saura faire mouche. Allez, on écoute."
"Et hop, encore un tube composé vite fé, bien fé! Il s’appelle: ".$_SESSION['song_title'].". Et il a été écrit spécialement pour: ".$_SESSION['user_name'].". J’ai essayé de coller à tes zenvies de chanson ".$humeur[$_SESSION['song_style']].", on écoute? C’est parti!",
"Hello! Espérons, qu’il n’y ait pas de bug ce coup-ci. Si tout va bien, on va pouvoir écouter: ".$_SESSION['song_title'].". Elle a été écrite sur les conseils de: ".$_SESSION['user_name'].". C’est une belle chanson aux couleurs ".$_SESSION['song_style'].". Pif, paf pouf, allonzi.",
"Hello! La prochaine chanson s’appelle: ".$_SESSION['song_title'].". Je l’ai composée pour: ".$_SESSION['user_name'].", qui semblait vouloir une chanson aux notes: ".$humeur[$_SESSION['song_style']].". Voyons ce que ça donne. Ha ha ha. Bisous ".$_SESSION['user_name'],
"C’est bon, je suis prêt! Attention, ".$_SESSION['user_name'].", la prochaine est pour toi! Elle s’appelle: ".$_SESSION['song_title'].". Pour écrire cette belle chanson, j’ai mélangé tes souhaits et mes inspirations. Sur une musique: ".$humeur[$_SESSION['song_style']].". Reste plu qu’à espérer que ça te plaise. 3, 2, 1 go!",
"Cher ".$_SESSION['user_name'].", j’ai travaillé dur pour achever l’écriture de ".$_SESSION['song_title'].", tel que tu l’a rêvé. Des notes ".$humeur[$_SESSION['song_style']]." sur un texte qui j’espère te parlera. Voilà. Bien du plaisir. Attention ".$_SESSION['user_name'].", je lance la machine, salut.",
"La prochaine chanson est pour toi: ".$_SESSION['user_name']."! Elle s’appelle: ".$_SESSION['song_title'].", et je l’ai écrite du mieux que j’ai pu, mais j’étais un peu à la bourre. Ne m’en veux pas si c’est nul. Bisous ".$_SESSION['user_name'],
"C’est pas pour me vanter, mais je pense que la prochaine chanson touche au génie! Je l’ai écrite pour: ".$_SESSION['user_name'].", et elle s’appelle: ".$_SESSION['song_title'].". Franchement, je crois que c’est pas mal. ".$_SESSION['user_name'].", accroche-toi!",
"Bon, c’était pas facile, mais j’ai finalement terminé l’écriture de ".$_SESSION['song_title'].". Spécialement pour ".$_SESSION['user_name'].". Une chanson un peu ".$humeur[$_SESSION['song_style']]." qui j’espère saura faire mouche. Allez, on écoute."
);

?>
Binary file modified borne/video/enchante.mp4
Binary file not shown.
Binary file modified borne/video/intro.mp4
Binary file not shown.
Binary file modified borne/video/outro.mp4
Binary file not shown.

0 comments on commit 4f92ed8

Please sign in to comment.