SongGuess
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructs a mulitple choice question asking which is the correct song.

      Parameters

      • song: {
            artist: string;
            audioURL: string;
            cover: string | null;
            hrefURL: string;
            name: string;
        }

        The correct song for this question.

        • artist: string

          The name of the song artist.

        • audioURL: string

          A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

        • cover: string | null

          Cover URL of the song.

        • hrefURL: string

          The URL users will be redirected to when clicking.

        • name: string

          The name of the song.

      • possibleDistractions:
            | {
                artist: string;
                audioURL: string;
                cover: string
                | null;
                hrefURL: string;
                name: string;
            }[]
            | null

        all possible songs that could be used for distractions

        • {
              artist: string;
              audioURL: string;
              cover: string | null;
              hrefURL: string;
              name: string;
          }[]
          • artist: string

            The name of the song artist.

          • audioURL: string

            A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

          • cover: string | null

            Cover URL of the song.

          • hrefURL: string

            The URL users will be redirected to when clicking.

          • name: string

            The name of the song.

        • null
      • distractionsPreferSameArtist: boolean | null

        whether to prefer searching for distractions by the same artist as the searched song

      Returns MultipleChoiceQuestion

    Properties

    answers: {
        artist: string;
        audioURL: string;
        cover: string | null;
        hrefURL: string;
        name: string;
    }[] = []

    The list of songs for this question (1 correct answer + 3 distractors).

    Type Declaration

    • artist: string

      The name of the song artist.

    • audioURL: string

      A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

    • cover: string | null

      Cover URL of the song.

    • hrefURL: string

      The URL users will be redirected to when clicking.

    • name: string

      The name of the song.

    distractionsPreferSameArtist: boolean | null

    whether to prefer searching for distractions by the same artist as the searched song

    song: {
        artist: string;
        audioURL: string;
        cover: string | null;
        hrefURL: string;
        name: string;
    }

    The correct song for this question.

    Type Declaration

    • artist: string

      The name of the song artist.

    • audioURL: string

      A URL to the audio file of the song. Currently only audio previews from Apple Music and SoundCloud are allowed.

    • cover: string | null

      Cover URL of the song.

    • hrefURL: string

      The URL users will be redirected to when clicking.

    • name: string

      The name of the song.

    startPos: number = ...

    The random/user-defined audio start position index (0-2) for this question.

    RoomConfigMessageSchema.audioStartPosition

    Methods

    • Returns the round message for the current phase.

      Parameters

      Returns {
          answerOptions: string[];
          correctAnswerIndex?: number;
          questionType: "multiple_choice";
          startPos: number;
      }

      • answerOptions: string[]

        The current 4 question answer options.

      • OptionalcorrectAnswerIndex?: number

        The index of the correct answer, if answer is shown.

      • questionType: "multiple_choice"
      • startPos: number

        The random/user-defined audio start position index (0-2) for the current question.

        RoomConfigMessageSchema.audioStartPosition