Skip to content

Added a program which allows two mp3 file to be combined #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions C++/Where is the Marble? (10474).cpp

This file was deleted.

20 changes: 14 additions & 6 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Contributors of this repository
<!-- To add your name to the repository contributors, Use this template below: -->

1. [Nirav Madariya](http://github.com/niravmadariya)
2. [Chandu Siddartha](https://github.com/siddartha19/)
3. [Matheus Muriel](https://github.com/MatheusMuriel/)

# Contributors of this repository
<!-- To add your name to the repository contributors, Use this template below: -->

1. [Nirav Madariya](http://github.com/niravmadariya)
2. [Chandu Siddartha](https://github.com/siddartha19/)

# Contributors of this repository
<!-- To add your name to the repository contributors, Use this template below: -->

1. [Nirav Madariya](http://github.com/niravmadariya)
2. [Chandu Siddartha](https://github.com/siddartha19/)
3. [Matheus Muriel](https://github.com/MatheusMuriel/)
4. [Simon Lariz](https://github.com/SimonLariz)
1 change: 0 additions & 1 deletion HTML/FORM
Submodule FORM deleted from c25e42
18 changes: 9 additions & 9 deletions PHP/MySQL_in_app_azure.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
$conn = getenv("MYSQLCONNSTR_localdb"); // this will return the whole connectionstring in a single string
$conarr2 = explode(";",$conn); // Let's beautify it, by splitting it and decorating it in an array
$conarr = array();
foreach($conarr2 as $key=>$value){
$k = substr($value,0,strpos($value,'='));
$conarr[$k] = substr($value,strpos($value,'=')+1);
}
print_r($conarr); // $conarr is an array of values of connection string
<?php
$conn = getenv("MYSQLCONNSTR_localdb"); // this will return the whole connectionstring in a single string
$conarr2 = explode(";",$conn); // Let's beautify it, by splitting it and decorating it in an array
$conarr = array();
foreach($conarr2 as $key=>$value){
$k = substr($value,0,strpos($value,'='));
$conarr[$k] = substr($value,strpos($value,'=')+1);
}
print_r($conarr); // $conarr is an array of values of connection string
?>
37 changes: 37 additions & 0 deletions Python/MP3PrefixAdder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import tkinter as tk
from tkinter import filedialog
from pydub import AudioSegment

root =tk.Tk()
root.withdraw()

def combination():
combined = prefixMP3 + songMP3
fileOutputLocation = filedialog.askdirectory(title="PLEASE SELECT THE OUTPUT LOCATION")
fileExportName = input("Please enter the file output name without the .mp3 extension \n")
exportFile = combined.export(fileOutputLocation + "\\" + fileExportName + ".mp3", format="mp3")
print("Prefix has been added to the song!")



print("Welcome to MP3 Prefix Additions")
userInput = input("Please type 1 to begin or press anything else to quit\n")

if(userInput == str(1)):
print('Please select the song mp3 file fist')
print("Then select the prefix mp3 file to add to the beginning of the song")
songMP3File = filedialog.askopenfile(filetypes =(("MP3 File", "*.mp3"),("All Files","*.*")),title = "PLEASE SELECT THE SONG FILE")
prefixMP3File = filedialog.askopenfile(filetypes =(("MP3 File", "*.mp3"),("All Files","*.*")),title = "PLEASE SELECT THE PREFIX FILE")
print("Thank You, Working on finding directory and file type")
songSplit = str(songMP3File).split("'")
prefixSplit = str(prefixMP3File).split("'")
songDir = str(songSplit[1])
prefixDir = str(prefixSplit[1])
songMP3 = AudioSegment.from_file(str(songDir), format="mp3")
prefixMP3 = AudioSegment.from_file(str(prefixDir), format="mp3")

combination()


else:
quit()