whatbpm 1.0.2

💓 Today's Trending Values for EDM Production
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub fn generate(entity: &str, genre: &str) -> String {
    let genre = if genre == "General" { "EDM" } else { genre };
    match entity {
        "BPM" => format!("What is the most commonly used BPM for {genre} at the moment?"),
        "Root Note" => {
            format!("What is the most commonly used root note for {genre} at the moment?")
        }
        "Key" => format!("What is the most commonly used key for {genre} at the moment?"),
        "Label" => {
            format!("What label has released most of the trending {genre} tracks lately?")
        }
        "Genre" => "What EDM genre is the most charting at the moment?".to_string(),
        "Average Duration" => {
            format!("What is the average {genre} track length at the moment?")
        }
        _ => unreachable!(),
    }
}